View Single Post
Old September 27th, 2009, 12:26 AM   #6 (permalink)
skidpics
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
I this should work..

$the_dbarray = array( "user1", "user2", "user3", "user3" ); //<--Note the extra "item3"
shuffle($the_dbarray);

$mysql_user = $the_dbarray

This should select 1 of the users# for a database connection, then pass the results to $mysql_user. Testing it, it is working. I would figure if there was an error, I would not be able to login ;-)

If only now I can base the random of Max_Sql connections, then it would work perfect.. for shared hosting, at this point in time.
skidpics is offline   Reply With Quote