<?php
$pname = 'История побед';
$pkey = 'победы';
$pdesc = 'На данной странице Вы можете просмотеть историю побед';
include('inc/top.php');
?>
<!-- Контент -->
<div class="gamehall_wrapper">
				<div class="index_gamehall_wrapper">
<div class="panel panel-default">
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>Ник</th>
<th>Выигрыш</th>
<th>Дата</th>
</tr>
</thead>
<tbody>
<?php
$reft = mysqli_query($connect_db, "SELECT id,win,t_games.dt,log FROM `t_games` INNER JOIN t_users ON t_games.usr = t_users.uid ORDER BY id DESC");
if (mysqli_num_rows($reft) > 0) {
while($row = mysqli_fetch_array($reft)) {
?>
<tr>
<td><?php echo $row["log"]; ?></td>
<td><?php echo $row["win"]; ?> руб.</td>
<td><?php echo date("d.m.y H:i",$row['dt']); ?></td>
</tr>
<?php
} } else { echo '<tr><td colspan="3"><center>Игр нет</center></td></tr>'; } ?>
</tbody>
</table>
</div>
</div></div>
</div>

<!-- /Контент -->
<?php include('inc/bottom.php'); ?>