fix: PHP4x + PHP5x constructors change for PHP7+ compatible ones

This commit is contained in:
Martin Ambrus
2017-09-19 20:40:43 +02:00
parent 0ca4c4732f
commit db4c373ace
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
class MYSQLi_DB {
var $dblink;
function mysqli_DB() {
function __construct() {
$this->dblink = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysqli_error());
mysqli_select_db($this->dblink, SQL_DB);
mysqli_query($this->dblink,"SET NAMES 'UTF8'");