<?php
$all='select * from avtor';
$all=mysql_query($all);
$allcount=mysql_num_rows($all);
$time=time()-300;
$onli="select * from avtor WHERE `ldate`>$time";
$onli=mysql_query($onli);
$onl=mysql_num_rows($onli);
if (@$_SESSION['id']){
$countkontaktz=@"select * from `kontakt` WHERE `who`='$_SESSION[id]'";
$countkontakz=mysql_query($countkontaktz);
$countkontakt=mysql_num_rows($countkontakz);
$new=@mysql_num_rows(@mysql_query("SELECT * from `mess` WHERE `inwho`='$_SESSION[id]' and `status`='2'"));
}
?>