database fixes
This commit is contained in:
parent
3241425c53
commit
6af2144cdc
6
main.php
6
main.php
@ -399,8 +399,8 @@ if ($_POST['setshadowclan']) {
|
||||
}
|
||||
|
||||
if ($_GET['setch']) {
|
||||
$online = mysql_query("SELECT * FROM `online` WHERE `real_time` >= '" . (time() - 60) . "'");
|
||||
while ($v = mysql_fetch_array($online)) {
|
||||
$online = db::c()->query('SELECT * FROM `online` WHERE `real_time` >= ?i', (time() - 60));
|
||||
while ($v = $online->fetch_assoc()) {
|
||||
$or[$v['room']]++;
|
||||
}
|
||||
?>
|
||||
@ -441,7 +441,7 @@ if ($_GET['setch']) {
|
||||
<div class="left-text">
|
||||
<div class="nickname-wrapper"><?=nick::id($user['id'])->full()?></div>
|
||||
<div class="text-title">Карта миров</div>
|
||||
<div class="hint-text">(Сейчас в игре: <strong><?= mysql_num_rows($online) ?></strong> чел.)</div>
|
||||
<div class="hint-text">(Сейчас в игре: <strong><?=$online->getNumRows()?></strong> чел.)</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user