![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
10/01/2006, 09:23
|
![Avatar de jpogsistem](http://static.forosdelweb.com/customavatars/avatar13623_1.gif) | | | Fecha de Ingreso: diciembre-2001
Mensajes: 2.405
Antigüedad: 23 años, 2 meses Puntos: 4 | |
Si trabajas php + mysql, Mysql devuelve el ultimo id generado de esta forma:
$new_id = mysql_insert_id();
donde $new_id toma el valor de id del ultimo registro insertado.
Falta ver el contexto en el que necesitas esa variable, para pasarla a otra página, por GET POST, etc,
Saludos.
__________________ EL LIMITE ES EL UNIVERSO |