I tried going to one of my websites this morning, and had this error message…
Warning: mysql_connect(): Too many connections in /home/myspace/domains/mydomain.com/public_html/index.php on line 25
Couldn’t Connect To SQL
The first lines of index.php are as follows…
15// get the connection variables
16 include(‘wroof/admin/connect.inc.php’);
17 $user = $connect[0];
18 $pass = $connect[1];
19 $db = $connect[2];
20 $path = $connect[3];
21
22 $csspath = $path.”wroof/css/wroof.css”;
23
24//create the connection
25 $link = mysql_connect(“localhost”,$user, $pass);
26 if(! $link) die(“Couldn’t Connect To SQL”);
27 mysql_select_db($db, $link) or die(“Couldn’t open $db: “.mysql_error());
Connect.inc.php just has the connect variables in text format.
The site, [url]www.wroof.com,
Is this likely to be a php script problem (my problem), or a server problem (my host provider’s problem)?
Thanks
CTB