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