$q4="select * from MLBTEAMS order by MLBFirst asc";
$r4=mysql_query($q4) or die(mysql_error());
while ($a4=mysql_fetch_array($r4)) {
echo "<TR Height=50>";
echo "<TD><center><img src=Logos/" . $a4[XMLID] . ".png width=35%></center></TD>";
echo "<TD><H3>" . $a4[MLBFirst] . " " . $a4[MLBLast] . "</H3></TD>";
$q7="select * from PICKS where UserID='$_SESSION[UserID]' AND XMLID = '$a4[XMLID]'";
$r7=mysql_query($q7) or die(mysql_error());
while ($a7=mysql_fetch_array($r7))
{
If($a7)
{
echo "<TD bgcolor='#FF6600'>Picked in Week: " . $a7[WeekNum] . "</TD>";
}
else {
echo "<TD bgcolor='#00FF00'>You did not pick this team!</TD>";}
}
echo "</TR>";
}
|