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);