Re: mysql_insert_id
| From: | Chris Adams | Date: | Thu, 29 Jun 2000 01:53:00 +0000 |
| Subject: | Re: mysql_insert_id | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3711@lists.php.net to get a copy of this message | ||
> Can anybody tell me the proper sintax in order to get the last id?
mysql_insert_id();
The optional parameter is for the connection, not the query (it defaults to the last MySQL
connection you used). This would be useful if you had a couple different MySQL connections open.