Re: mysql - get actual row

From: Date: Tue, 10 Jun 2003 22:22:36 +0000
Subject: Re: mysql - get actual row
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-150975@lists.php.net to get a copy of this message
Hy, try with mysql_insert_id() [ if you've set the first field as "index" in your table ]. Regards. "Harry.De" <harald.mohring@gmx.de> a écrit dans le message de news:20030610221941.62720.qmail@pb1.pair.com... > Hi, > if i insert into a mysql table a row e.g. > mysql_query("INSERT into TEST (testfield) VALUES ('This is a test')"); > and the first field is an auto increment (e.g. NR), > how can i get the value of the auto increment NR i've actually inserted? > > Tanks Harry > > > > >

« previous php.general (#150975) next »