Re: Beginner query about mysql...
| From: | Greg Donald | Date: | Mon, 18 Feb 2002 03:21:05 +0000 |
| Subject: | Re: Beginner query about mysql... | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-17010@lists.php.net to get a copy of this message | ||
> 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/
------------------------------------------------------------------------