how to show female/male online list

276
.
how to show female male online list separatly . I tried adding condition
$sql_total= "select count(*) from users where sex =zh and 'lastdate' >. . But its not showing the correct number of online list
.
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `" . ($act == 'guest' ? 'cms_guests' : 'users') . "` WHERE `sex`='zh' AND  `lastdate` > '$onltime'"), 0);
.
well the problem is that when i updated my site to from 4.2 to 4.3 its not showing correct online members numbers. But when i upload fresh 4.3 version its shows correct online list
.
well i uploaded fresh john cms 4.3 so its showing correct online users. But when i updated from 4.2 to 4.3 its shown wrong online list . . .
Всего: 4