my probelm is i am trying to pull 2 fields that associate with the same id:
ex:
$query = "select date, home, away, team.name from sched2k3,team where sched2k3.home=team.teamid";
$result = mysql_query($query);
$num_results = mysql_num_rows($result);
echo "<p>Number of games: ".$num_results."</p>";
for ($i=0; $i <$num_results; $i++)
{
$row = mysql_fetch_array($result);
echo $row["date"]." :: ".$row["name"]." :: <br>\n";
}
?>
thios retrieves the correct records and displays the first team(sched2k3.home) correctly, but I dont know how to get the team name for the 2nd team (sched2k3.away)
I hope that is understandable.