View Single Post
Old 04-24-2005, 11:29 AM  
Steen2
Confirmed User
 
Join Date: Feb 2004
Location: Vancouver, Canada
Posts: 7,662
Does this PHP code look OK?

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.
__________________
ICQ: 2262.73945
Steen2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote