Código:
el codigo de conexion es estDeprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/u351714769/public_html/classes/class.db.php on line 50
Código PHP:
* Create the connection to the database
*
* @return void
*/
public function Connect() {
$result = false;
$this->connection = mysql_connect(APP_DB_HOST, APP_DB_USER, APP_DB_PASSWORD);
if($this->connection) {
$select_db = mysql_select_db(APP_DB_NAME, $this->connection);
// mysql_set_charset('utf8', $this->connection);
if($select_db) {
$result = true;
} else {
if($this->show_errors)
die(mysql_error());
}
} else {
if($this->show_errors)
die(mysql_error());
}
return $result;
}
/**
* This closes a database connection
Código PHP:
$this->connection = mysql_connect(APP_DB_HOST, APP_DB_USER, APP_DB_PASSWORD);
saludos y gracias por su apoyo