mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-02 18:44:21 +00:00
fix: mysql_error() parameters fixed
This commit is contained in:
@@ -163,7 +163,7 @@ class MYSQLi_DB {
|
||||
} else {
|
||||
$q = "SELECT $field FROM " . TB_PREFIX . "users where username = '$ref'";
|
||||
}
|
||||
$result = mysqli_query($this->dblink,$q) or die(mysqli_error());
|
||||
$result = mysqli_query($this->dblink,$q) or die(mysqli_error($this->dblink));
|
||||
if($result) {
|
||||
$dbarray = mysqli_fetch_array($result);
|
||||
return $dbarray[$field];
|
||||
|
||||
Reference in New Issue
Block a user