Re: How to find the last ID?

From: Date: Fri, 06 Jun 2003 21:19:48 +0000
Subject: Re: How to find the last ID?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-28384@lists.php.net to get a copy of this message
Hi there, Thanks for your quick reply, very appreciated :-) Chris > hi > > you can easily do this by using > > mysql_insert_id(); > > see > http://www.php.net/manual/en/function.mysql-insert-id.php > > .ma > > e: grillen@abendstille.at > w: http://www.abendstille.at > /***************/ > life would be easier if i knew the source code. > > Am Freitag, 06.06.03 um 23:16 Uhr schrieb Chris Payne: > > > 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 > >

« previous php.db (#28384) next »