Hy, try with mysql_insert_id() [ if you've set the first field as "index" in your table ].
Regards. "Harry.De" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > 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 > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php