While I am browsing my online app in the server I got an error like
Database Connection Failed
User coule_com@c17564 already has more than 'max_user_connections' active connections.
But this is working well in my local system. And this error occurs ANY TIME when I navigate in the server. If i refresh the browser i can able to move further. But I in need to solve this issue.
will anybody help me to solve this issue ?
connection code :
function makeConnection() {
global $config;
$this->ConLink = mysql_pconnect($config['DBHostName'],$config['DBUserName'],$config['DBPassword']) or die("Database Connection Failed". mysql_error());
mysql_select_db($config['DBName'], $this->ConLink);
return true;
}