Me marca este error me pueden decir de que se trata...?
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\asistorage\includes\database.php:25 Stack trace: #0 C:\xampp\htdocs\asistorage\includes\database.php(19): Database->open_connection() #1 C:\xampp\htdocs\asistorage\includes\database.php(134): Database->__construct() #2 C:\xampp\htdocs\asistorage\includes\member.php(7): require_once('C:\xampp\htdocs...') #3 C:\xampp\htdocs\asistorage\includes\initialize.php(25): require_once('C:\xampp\htdocs...') #4 C:\xampp\htdocs\asistorage\index.php(3): require_once('C:\xampp\htdocs...') #5 {main} thrown in C:\xampp\htdocs\asistorage\includes\database.php on line 25
este es mi código:
public function open_connection() {
$this->conn = mysql_connect(DB_SERVER,DB_USER,DB_PASS);
if(!$this->conn){
echo "Problem in database connection! Contact administrator!";
exit();
}else{
$db_select = mysql_select_db(DB_NAME,$this->conn);
if (!$db_select) {
echo "Problem in selecting database! Contact administrator!";
exit();
}
}
}