<?php
include_once'../inc/base.php';
if(isset($_GET['log']) && $_GET['key'] == 'shahgshhs'){
$play_log=$db->query("SELECT * FROM `play_log` ORDER BY `id` DESC LIMIT 5");
while($p_log=$play_log->fetch_assoc()){
$us_login=$db->query("SELECT * FROM `users` WHERE `id`='".$p_log['user_id']."' ")->fetch_assoc();
$p_logt=date('d.m.y H:i', $p_log[time]);
echo"<div class='obvodka'>
<center>Пользователь $us_login[login] $p_log[msg] $p_logt<br></center></div>";
}
}
?>