Ёбанный вечный цикл!!!

This commit is contained in:
lopar 2018-02-16 01:07:49 +02:00
parent fa5b09dd9e
commit 9c75b04205

View File

@ -19,15 +19,14 @@ var_dump($data);
<A HREF="javascript:top.AddToPrivate('pal', top.CtrlPress)" target=refreshed><img src="i/lock.gif"></A> Модераторы онлайн
</h1>
<?php
while ($data->fetch_assoc()) {
// if (!empty($data['online'])) {
// echo '<A HREF="javascript:top.AddToPrivate(\'{$data[\'login\']}\', top.CtrlPress)" target=refreshed><img src="i/lock.gif"></A>';
// echo "<img src=i/align_{$data['align']}.gif> {$data['login']} — {$data['status']}<br>";
// } else {
// echo '<img src="i/lock1.gif">';
// echo "<em style='color:silver;'><img src=i/align_{$data['align']}.gif> {$data['login']} — {$data['status']}</em><br>";
// }
var_dump($data);
while ($row = $data->fetch_assoc()) {
if (!empty($row['online'])) {
echo '<A HREF="javascript:top.AddToPrivate(\'{$row[\'login\']}\', top.CtrlPress)" target=refreshed><img src="i/lock.gif"></A>';
echo "<img src=i/align_{$row['align']}.gif> {$row['login']}{$row['status']}<br>";
} else {
echo '<img src="i/lock1.gif">';
echo "<em style='color:silver;'><img src=i/align_{$row['align']}.gif> {$row['login']}{$row['status']}</em><br>";
}
}
?>
</body>