View file file/chatcount.php

File size: 333B
<?

$g1 = mysql_query("SELECT COUNT(*) FROM `chat`;");
$k_p=mysql_result($g1, 0);
$time=gmdate('d.m.Y H:i',time());
$pok=$time;

$g2 = mysql_query("SELECT COUNT(*) FROM `chat` WHERE `date` > '$pok' ;");
$k_n= mysql_result($g2, 0);

if ($k_n==0)
{
$k_n='';
}
else
{
$k_n='/+'.$k_n;
}

echo "$k_p <font color=\"red\">$k_n</font>";

?>