I get this error on my website.
Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'pfgdb'@'localhost' (using password: YES) in /home/pfgins/public_html/admin/lib/DB.php on line 23
Could not establish connection
this is the database I am not sure where it is any help would be great.
<?php
/************************************
class to control MySQL functions
written by Tony Burnham, 06/18/2001
************************************/
Class DB {
var $login;
var $host;
var $password;
/* initializes connection vars */
function init($host,$login,$password) {
$this->host=$host;
$this->login=$login;
$this->password=$password;
}
/* establishes MySQL persistent connection */
function get_con() {
$conn=mysql_pconnect($this->host,$this->login,$this->password)
or die('Could not establish connection');
return $conn;
}
}
?>
Thanks,
Patrick