I could not get this to work. I'm getting in invalid argument - however I really want to use this!
Originally Posted by pabloj
Very nice idea... So something like this is what you're talking about?
Originally Posted by derelict
Is that a sloppy way to code that?
$dbusers = array('user1', 'user2', 'user3', 'user4');
$yy = 0;
while(!mysql_connect ($dblocation, $dbusers[$yy], $dbpass))
I appreciate all of your help!
One other question...
Say I'm in the middle of a connection with many, many queries. Is there a way I can catch the error and reconnect with another user and continue one with what was being executed?
For example, the script connects to the DB and begins to execute 100 queries. At query 50 I get to my max_questions and the server kicks back the error. Can I have it reconnect with a different user and continue on?