Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/05/2006, 07:16
Avatar de pereztroff
pereztroff
 
Fecha de Ingreso: junio-2002
Ubicación: En la Internet.
Mensajes: 4.068
Antigüedad: 21 años, 10 meses
Puntos: 5
entiendo que esa funcion devuelve el valor del ultimo id, ¿pero como muestro los otros campos de ese mismo registro?

encontre este cosigo pero no entendi bien como aplicar a mi caso:

mysql_query("LOCK TABLES art WRITE");

mysql_query("INSERT INTO table (....) VALUES (....)");

$result = mysql_query("SELECT MAX(ID) AS LAST_ID FROM table");

$result = mysql_fetch_array($result);

mysql_query("UNLOCK TABLES");

echo "Last ID#" . $result[LAST_ID];