Ответов: 2 Просмотров: 42
|
PHP:
скопировать код в буфер обмена
<?PHP include 'conf.php'; if (isset($_COOKIE['id']) and isset($_COOKIE['hash'])) { if(($userdata['users_hash'] !== $_COOKIE['hash']) or ($userdata['users_id'] !== $_COOKIE['id'])) { } } else { } ?> <!DOCTYPE html><html><head><?PHP include "/inc/header.php" ?> <title>Лог</title> </head><body> <?PHP include "/inc/menu.php"; ?> <h1>Лог</h1> <?PHP ?> <table class="table table-striped"> <tr> <th>Отправитель</th> <th>Получатель</th> <th>Количество</th> <th>Время</th> </tr> <?PHP print '<tr><td>'.$row['user_from'].'</td>'; print '<td>'.$row['user_to'].'</td>'; print '<td>'.$row['count'].'</td>'; print '<td>'.$row['time'].'</td> </tr>'; } } ?> </table></body></html>
Вот код и он выдает пустую таблицу
Хотя в бд куча записей!11
Скрин внизу
|