PHP Code:
function mysqlconn() {
$user = "DB_DB";
$pass = "pass";
$db = "DB_DB";
$newconnect = mysql_pconnect(localhost, $user,$pass) or die(mysql_error());
mysql_select_db($db) or die(mysql_error());
if(mysql_error()) { echo mysql_error(); }
}
It's causing this error in my error logs and looks to be hurting the server: PHP Warning: mysql_pconnect(): Link to server lost, unable to reconnect in ...
The line the error references is
$user = "DB_DB";
But I included the lines around it for better insight.