> I have a table with a ID field 'auto_increment',
>   when i insert a record in the table,
>   how can i know the value of the ID inserted by the mySQL?

mysql_insert_id()

http://www.php.net/manual/en/function.mysql-insert-id.php

------------------------------------------------------------------------ 
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/
------------------------------------------------------------------------


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

Reply via email to