<?
$kk_p=mysql_result(mysql_query("SELECT COUNT(*) FROM `contests`",$db), 0);
$kk_n= mysql_result(mysql_query("SELECT COUNT(*) FROM `contests` WHERE `ntime` < '".(time())."'",$db), 0);
if ($kk_n==0)$kk_n=NULL;
else $kk_n="/<font color='red'>+$kk_n</font>";
echo "$kk_p$kk_n";
?>