mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-02 02:24:21 +00:00
fix: unstupiding stupid SQL
This commit is contained in:
@@ -35,7 +35,7 @@ $users = mysqli_num_rows(mysqli_query($GLOBALS["link"], "SELECT SQL_CACHE * FROM
|
||||
<tr>
|
||||
<td>Players online</td>
|
||||
<td><?php $t =time();
|
||||
$result = mysqli_query($GLOBALS["link"], "SELECT SQL_CACHE * FROM ".TB_PREFIX."users WHERE ".$t." - timestamp < 300") or die(mysqli_error($database->dblink));;
|
||||
$result = mysqli_query($GLOBALS["link"], "SELECT SQL_CACHE * FROM ".TB_PREFIX."users WHERE timestamp > ".($t - 300).") or die(mysqli_error($database->dblink));;
|
||||
$num_rows = mysqli_num_rows($result);
|
||||
echo $num_rows;?>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user