Can anyone help me with this? I have tried everything I know but it doesn't work. I have this in my localhost, but everything went fine. When I transferred this online, this problem occurs. It would be great if someone could help me fix this. Thank you so much.
`<?php
require_once(LIB_PATH.DS."config.php");
class Database {
var $sql_string = '';
var $error_no = 0;
var $error_msg = '';
private $conn;
public $last_query;
private $magic_quotes_active;
private $real_escape_string_exists;
function __construct() {
$this->open_connection();
$this->magic_quotes_active = get_magic_quotes_gpc();
$this->real_escape_string_exists = function_exists("mysqli_real_escape_string");
}
public function open_connection() {
$this->conn = mysqli_connect(DB_SERVER,DB_USER,DB_PASS);
if(!$this->conn){
echo "Problem in database connection! Contact administrator!";
exit();
}else{
$db_select = mysqli_select_db(DB_NAME,$this->conn); */I got the error in this line/*
if (!$db_select) {
echo "Problem in selecting database! Contact administrator!";
exit();
}
}`