Re: Simple question on auto_increment
| From: | Christian Flothmann | Date: | Tue, 14 Nov 2006 10:23:27 +0000 |
| Subject: | Re: Simple question on auto_increment | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42674@lists.php.net to get a copy of this message | ||
www.php.net/mysql_insert_id --or-- www.php.net/mysqli_insert_id (of course for your example to work all the other fields would have to be nullable)Or even the MySQL function LAST_INSERT_ID(): http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#id2725312