Hi,
I've encounter this error message (below) just don't understand why it says mysql_connect is undefine function (see program code below).
Obviously i'm new to PHP, does somebody know what seems to be the problem? What should I do?
Thanks in advance.
-Jun
ERROR MESSAGE
Fatal error: Call to undefined function: mysql_pconnect() in c:\Inetpub\wwwroot\phppro\BaseDAO.php on line 83
PROGRAM/CODE
function connect($dbserver, $dbname, $dbuser, $dbpass) {
if($this->DB == null) {
$this->RS = null;
//BELOW IS THE LINE 83
$this->DB = mysql_pconnect($dbserver, $dbuser, $dbpass)
or $error_message = mysql_errno().": ".mysql_error();
if(!mysql_select_db($dbname, $this->DB)) {
$error_message = mysql_errno().": ".mysql_error();
}
}
}