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.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to