|
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.
|