View file stol/count.php

File size: 275B
<?php
$k_p=mysql_result(mysql_query("SELECT COUNT(*) FROM `stol`",$db), 0);
$k_n= mysql_result(mysql_query("SELECT COUNT(*) FROM `stol` WHERE `time` > '".(time()-86400)."'",$db), 0);
if ($k_n==0)$k_n=NULL;
else $k_n='/<span class="new">+'.$k_n.'</span>';
echo "$k_p$k_n";
?>