Ver Mensaje Individual
  #8 (permalink)  
Antiguo 23/05/2006, 10:28
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
Cita:
Iniciado por rkpost
o tb

mysql_query("INSERT INTO tabla (...) VALUES (....)");
$res=mysql_query("SELECT * FROM tabla ORDER BY id DESC LIMIT 1");
PROBE ESTA solucion y no funciona, me muestra no el ultimo insertado sino el penultimo, ejemplo si creo un registro que le es asignado el 131, al imprimir los datos me saca los del registro 130