Yoed Anis wrote:

> hey guys,
> 
> quick question I'm having trouble finding an answer too.
> In a mysql database, how can I select that last row entry. This might be
> done mins after i put that entry there and i tried to use:
>  $lastid=mysql_insert_id(); to get the last id but to no avail.
> 
> Thanks
> Yoed


RT*M

"
mysql_insert_id() returns 0 if the previous query does not generate an 
AUTO_INCREMENT value. If you need to save the value for later, be sure 
to call mysql_insert_id() immediately after the query that generates the 
value.
"

could that be your problem ?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to