14 replies · 1,061 views · started 15 years ago · 1 min read
TL;DR · summary of 14 replies
brand was trying to fix an error in their code where they were only picking up male members online, and wanted to display both male and female members on separate pages.
The solution proposed by ori was to join three tables in the query instead of just two as originally attempted.
Brand thanked everyone who helped with the issue.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
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
$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/>";
i keep getting errors on
$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'"));
can someone please help me with this i am trying to do it for the wapdesire v_2
please
dont want ur crappy coding lol i said the basic v2 script that u can download ere. U got ur own server but u cant even code seperate pages 4 for male and female online goodluck 🙂
fullcircle wrote:
dont want ur crappy coding lol i said the basic v2 script that u can download ere. U got ur own server but u cant even code seperate pages 4 for male and female online goodluck :)
the plain v2 is on here go look for it and i got the pages i need thank you very much i just having problems getting it to show things
i have now fixed this thanks to everyone who helped please close this now thanks