![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
25/05/2008, 15:12
|
![Avatar de duskrow](http://static.forosdelweb.com/customavatars/avatar231966_1.gif) | | | Fecha de Ingreso: abril-2008
Mensajes: 267
Antigüedad: 16 años, 9 meses Puntos: 8 | |
Respuesta: Incrementar en uno antes de insertar $sql = mysql_query("SELECT * FROM Tabla order by Num desc Limit 1");
if(!empty($sql))
{
$num=$sql("Num");
++$num;
}else{
$num=1;
} |