Pancake Posted December 19, 2007 Share Posted December 19, 2007 I do this script here: //Assume all variables declared earlier... while(mysql_connect($host, $user, $pass)) { mysql_select_db($db_name); } I run it on my computer and my computer runs slow... Anyone know why? Quote Link to comment Share on other sites More sharing options...
BK87 Posted December 19, 2007 Share Posted December 19, 2007 your script will connect to the db meny time... because 'while' will just keep connecting and connecting try this $db=@mysql_connect($server,$dbusername,$dbpassword); if(!$db){die("Database error");} @mysql_select_db($database); Quote Link to comment Share on other sites More sharing options...
Pancake Posted December 19, 2007 Author Share Posted December 19, 2007 Lol it was a joke I posted in the miscellaneous board... It got moved to here though Im guessing he didn't read this thread though... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.