I do not fully understand this functions purpose. I think it’s supposed to return the last id from the inserted database entry.
This is being used in a function that handles three uploads at the click of a button. for ($i = 0; $i < $counter; $i++)
I am fairly new at PHP. Is there an equivalent to this function for mysqli (improved)? Or how would you suggest I accomplish this efficiently?
Before I posted a question here I searched the PHP manual for mysql_insert_id(), but the search results came up zero.
When searching for a function in the php manual, don’t include the (). So search for mysql_insert_id instead of mysql_insert_id().
And if you think php.net’s search is bad, try the one on dev.mysql.com
Personally I dont even use the search.
Type in php.net/command_name_here
and you will get redirected to the manual page for that command, if it exists.