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? Link to comment https://forums.phpfreaks.com/topic/82349-solved-script-no-works/ 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); Link to comment https://forums.phpfreaks.com/topic/82349-solved-script-no-works/#findComment-418614 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... Link to comment https://forums.phpfreaks.com/topic/82349-solved-script-no-works/#findComment-418615 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.