Hello,
this is the answer I was looking for 🙂
But I need to be sure about another doubt.
I was encouraged to use a singleton class to handle my database connection, like the one described Here
This method is cool, but It's not yet very clear to me what is the scope of such an object.
When it says that it will help me always use the same connection, does it refer to the single PHP request, or is the connection shared between all the pages that instantiate the object? In that case, mysql_insert_id() would return inconsistent data, wouldn't it?