A small question - Mysql_insert_id

From: Date: Sun, 02 Jun 2002 03:07:31 +0000
Subject: A small question - Mysql_insert_id
Groups: php.general 
Request: Send a blank email to php-general+get-100222@lists.php.net to get a copy of this message
Hi, I am inserting a row into a table with this structure id (auto increment) name (varchar) hits (int) I am using insert into mytable values(NULL,'Ryan',90); Then according to the manual I have to use (to quote) "printf ("Last inserted record has id %d\n", mysql_insert_id());" will this return the row number or the "id" fields value..? If it returns the row number how do I get the ID number? The id started at 1500. Cheers, -Ryan.

« previous php.general (#100222) next »