![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
10/10/2007, 15:50
|
![Avatar de ferbux](http://static.forosdelweb.com/customavatars/avatar180221_1.gif) | | | Fecha de Ingreso: mayo-2007 Ubicación: por ahí intentado ayudar
Mensajes: 823
Antigüedad: 17 años, 9 meses Puntos: 6 | |
Re: ubicacion por lista ahahaha, OK, mira haces la consulta:
$con="select count(*) from tutabla";
$result=mysql_query($conl) or die('Consulta fallida: ' . mysql_error());
$row=mysql_fetch_row($result);
esto te va a dar el numero de registros ke tienes en la tabla, entonces solo le sumas 1:
$num=$row[0]+1;
entonces $num va a tener ahora un 4 si por ejemplo tenias 3 registros, luego pues nada mas lo insertas al momento de hacer un INSERT en tu BD.
__________________ "Eres grande por que caminas entre gigantes" |