battles/users_online.php

20 lines
301 B
PHP
Raw Normal View History

2018-01-28 16:40:49 +00:00
<html>
<head>
</head>
<body>
<h1>Активные игроки:</h1>
<?php
$online = mysql_query("SELECT u.login
FROM `online` o
JOIN `users` u ON o.id = u.id
WHERE `o`.`real_time` >= ".(time()-60).";");
while($v = mysql_fetch_array($online))
{
echo "<li>{$v[0]}</li>";
}
?>
</ol>
</body>
</html>