Файл: test.masteram.us/dnev/count.php
Строк: 16
<?
$all_dnev=mysql_result(mysql_query("SELECT COUNT(*) FROM `dnev` WHERE `read` = '0'"),0);
$new_d=mysql_result(mysql_query("SELECT COUNT(*) FROM `dnev` WHERE `time` > '".(time()-86400)."' AND `read` = '0'"), 0);
$all_dnev_k=mysql_result(mysql_query("SELECT COUNT(*) FROM `dnev_kom`"),0);
$new_d_k=mysql_result(mysql_query("SELECT COUNT(*) FROM `dnev_kom` WHERE `time` > '".(time()-86400)."' "), 0);
echo "<font color='red'>+$new_d</font> <font color='green'>+$new_d_k</font>";
?>