View file social/user/count.php

File size: 316B
<?

$koll = mysql_result(mysql_query("SELECT COUNT(*) FROM `user`",$db), 0);

$k_new = mysql_result(mysql_query("SELECT COUNT(*) FROM `user` where `date_reg` > '$ftime' ",$db), 0);

if ($_new > 0) $k_new = '<font color="red">+' . $k_new . '</font>'; else $k_new = null;

echo '(' . $koll . ') ' . $k_new;

?>