how to count number of male and females online in wapdesire script . . . please can someone create function to count male and female online users
	 here is the code that i created to count but its not working
							
						
					Code:
	
	function getnummonline()
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE sex='M' AND lastact>'".$timeon."'"));
$num_items = $nouo[0]; //changable
}
function getnumfonline()
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE sex='F' AND lastact>'".$timeon."'"));
$num_items = $nouo[0]; //changable
}
/////////////////////Get members online
function getnumonline()
{
    $nouo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online "));
    return $nouo[0];
Comment