$last_id = mysql_insert_id();
Check out this page for details.
On Fri, 6 Jun 2003 17:16:01 -0400, Chris Payne wrote:
> 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?
Listserv only address.
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php