счетчик идеально работает если только один пласе типа `place` = 'sity' но когда начинаешь связывать их `place` = 'sity' || `place` = 'birga' || `place` = 'mag' получается херьня какая-то )
FlySelf помоги
$onltime = $realtime - 300;
$wsity = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `lastdate` > $onltime AND `place` = 'sity' || `place` = 'birga' || `place` = 'mag' || `place` = 'bandit' || `place` = 'bank' || `place` = 'bega' || `place` = 'work' || `place` = 'firma' || `place` = 'fishing' || `place` = 'fond' || `place` = 'gastr' || `place` = 'kopilka' || `place` = 'kosti' || `place` = 'naperstki' || `place` = 'ochko' || `place` = 'ohrana' || `place` = 'notarius' || `place` = 'bulls' || `place` = 'trud' || `place` = 'zakr' || `place` = 'zver' || `place` = 'band' || `place` = 'millioner'"), 0);
function wsity() {
global $realtime;
$onltime = $realtime - 300;
$wsity = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `lastdate` > $onltime AND (`place` = 'sity' OR `place` = 'birga' OR `place` = 'mag' OR `place` = 'bandit' OR `place` = 'bank' OR `place` = 'bega' OR `place` = 'work' OR `place` = 'firma' OR `place` = 'fishing' OR `place` = 'fond' OR `place` = 'gastr' OR `place` = 'kopilka' OR `place` = 'kosti' OR `place` = 'naperstki' OR `place` = 'ochko' OR `place` = 'ohrana' OR `place` = 'notarius' OR `place` = 'bulls' OR `place` = 'trud' OR `place` = 'zakr' OR `place` = 'zver' OR `place` = 'band' OR `place` = 'millioner')"), 0);
return $wsity;
}
Vl@dimir (10.02.2010/17:49)Не правильно вписал значит. Все работает.
У меня не работает. Типа белая страница и всё(