Re: Prevent global usage of last MySQL-Connection?!

From: Date: Tue, 25 Mar 2008 04:09:14 +0000
Subject: Re: Prevent global usage of last MySQL-Connection?!
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-44770@lists.php.net to get a copy of this message
I recognized the problem is: if no specific resource is given in mysql_connect() the function uses automatically the last connection. SO MY QUESTION IS NOW: HOW TO PREVENT THIS?
You can't unless you want to modify the php source code (written in C) and then you're stuck running a modified version everywhere - which is no good if you're going to share your code (run on multiple servers, or run on other peoples servers). -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#44770) next »