Thread: Function Help
View Single Post
  #8 (permalink)  
Old 04-23-2008, 01:03 AM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,569
Last Blog:
Tidy up your HTML
Credits: 0
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default Re: Function Help

I guess you can try something like this:
PHP Code:
$q1 "SELECT `id` FROM `GamesPlayed`";
$result mysql_query($q1);
$row mysql_fetch_array($result);
$max count($row);

for(
$i 0$i <= $maxi++)
{
    
$q2 "SELECT `id` FROM `Members` WHERE `maingame` = '".$row[$i]."'";
    
$result2 mysql_query($q2);
    echo 
$row[$i] . "-->" mysql_num_rows($result);

Reply With Quote