<?
$k_p=mysql_result(mysql_query("SELECT COUNT(*) FROM `guest`",$db), 0);
$k_n= mysql_result(mysql_query("SELECT COUNT(*) FROM `guest` WHERE `time` > '".$ftime."'",$db), 0);
if ($k_n==0)$k_n=NULL;
else $k_n=''.$k_n;
echo "<span class='left_count'>$k_p</span><span class='right_count'>$k_n</span>";
?>