Файл: Source/pages/inc/stats.php
Строк: 12
<?php
/*
* Script name: Points4Prize
* Author: Soft Projects
* Date created: 15/07/2015
*/
?>
<h3 class="right" style="padding-top:8px;">
Prize: <?php
$query3 = mysql_query("SELECT count(id) as broi from `vn_prizes`");
$row = mysql_fetch_array($query3);
echo $row['broi'];
?> |
Users: <?php
$query3 = mysql_query("SELECT count(id) as broi from `vn_users`");
$row = mysql_fetch_array($query3);
echo $row['broi'];
?> |
Online: <?php
$time = time() - 600;
$rq = mysql_query("SELECT * FROM `vn_users` WHERE lastact >= '$time'") or die(mysql_error());
$broi = mysql_num_rows($rq);
echo $broi;
?>
</h3>