<?
$k_p = mysql_result(query("SELECT COUNT(*) FROM `apps`", $db), 0);
$k_n = mysql_result(query("SELECT COUNT(*) FROM `apps` WHERE `time` > '" . $ftime . "'", $db), 0);
echo '<span class="count">'.mysql_result(mysql_query("SELECT COUNT(*) FROM `apps`"),0).'</span>';
?>