How to find the last ID?
| From: | Chris Payne | Date: | Fri, 06 Jun 2003 21:16:01 +0000 |
| Subject: | How to find the last ID? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-28382@lists.php.net to get a copy of this message | ||
Hi there everyone,
I'm creating a new entry using the following:
mysql_query ("INSERT INTO agents (agent_name)
VALUES ('$agentname')
but I need to find out the ID value it created, how can I do this easily?
Thanks
Chris