> -----Original Message-----
> From: Davíð Örn Jóhannsson [mailto:[EMAIL PROTECTED]] 
> Sent: 16. janúar 2003 13:59
> Subject: RE: [PHP] Problem with a for loop...
> 
> I only want the last inserted row in the mysql database, and each time
> the script goes trough the loop it adds a new row into the 
> database ...

If you only want the most recent row, why read all of the roww in the table? Why not 
add a auto_increment column, or a timestamp, sorting on that column with a limit of 
0,1?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to