can some one please help me i am trying to sort out so my online list can pick up both male and female online but on two diffrent pages
i keep getting errors on
can someone please help me with this i am trying to do it for the wapdesire v_2
please
thanks to who ever helps me with it
Code:
$male=mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT a.userid) FROM online a JOIN profiles b ON a.userid = b.id WHERE b.sex='M'")); $main.="Male Online:<a href=\"online.php?action=male&sid=$sid\">".$male[0]."</a><br/>"; $female=mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT a.userid) FROM online a JOIN profiles b ON a.userid = b.id WHERE b.sex='F'")); $main.="Female Online:<a href=\"online.php?action=female&sid=$sid\">".$female[0]."</a><br/>";
Code:
$male=mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT a.userid) FROM online a JOIN profiles b ON a.userid = b.id WHERE b.sex='M'")); $female=mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT a.userid) FROM online a JOIN profiles b ON a.userid = b.id WHERE b.sex='F'"));
please
thanks to who ever helps me with it
Comment