mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in
7 private $tables = array(); // все таблицы базы данных
8
9 function __construct($DB_HOST = DB_HOST, $DB_USER = DB_USER, $DB_PASS = DB_PASS, $DB_BASE = DB_BASE)
10 {
11 $this->connection = MySQL::connect($DB_HOST,$DB_USER,$DB_PASS,$DB_BASE);
12 }
13
14 static function connect($DB_HOST = DB_HOST, $DB_USER = DB_USER, $DB_PASS = DB_PASS, $DB_BASE = DB_BASE)
15 {
16 $connect = mysql_connect($DB_HOST, $DB_USER, $DB_PASS)
17
18 or trigger_error('MySQL::connect() не может установить соединение с "'.$DB_USER.'@'.$DB_HOST.'"', E_USER_ERROR);