$zapros = mysql_query("SELECT COUNT(*) FROM `wall` WHERE `user_id`='$user_id' AND `time`>'" . ($realtime - 259200) . "';"); $new = mysql_result($zapros, 0); $new = $new > 0 ? '/+' . $new . '' : ''; $kol = mysql_query("SELECT COUNT(*) FROM `wall` WHERE `user_id`='$user_id'"); $colmes = mysql_result($kol, 0);