WebProgrammerGoddess
Programmer
I'm coding with PHP and I'm doing a query using mysql_query(), a previous coder put a line of code in that calls the mysql_insert_id function and stores the value in a variable.
this is how it looks: $insertid = mysql_insert_id(); My question is doesn't it have to have the name of the query, so it knows which one to pull the id from?
Any help would be greatly appreciated.
Thanks
this is how it looks: $insertid = mysql_insert_id(); My question is doesn't it have to have the name of the query, so it knows which one to pull the id from?
Any help would be greatly appreciated.
Thanks