Hi there,
i have got a small question.
I have got 2 tables:
Teams
TeamID
TeamName
Wedstrijden
WedstrijdID
Dag
TeamThuis
TeamUit
ScoreThuis
ScoreUit
WedstrijdStatus
The script below generates a list of played matches with results.
At this moment it generates only the ID's of the teams but not the names of the teams. Could someone help me with this?
This is my script:
<?
if (isset($GET['aktie']) && $GET['aktie'] == "gespeeld")
{
$query_gespeeld = "Select * FROM Wedstrijden WHERE WedstrijdStatus='gesloten'";
if (!$result_gespeeld=mysql_query($query_gespeeld))
{
echo "Fout in de query:<br>\n".$query_gespeeld."<br>\n".mysql_error();
}
else
{
echo "<table border='0' cellpadding='0' cellspacing='0'>";
while($row_gespeeld=mysql_fetch_array($result_gespeeld))
{
echo "<input type='hidden' name='WedstrijdID' value='$row_uitslag[WedstrijdID]'>";
echo "<tr>";
echo "<td align='left'>$row_gespeeld[TeamThuis]</td><td>-</td><td>$row_gespeeld[TeamUit]</td>";
echo "<td align='center'>:</td>";
echo "<td align='right'>$row_gespeeld[ScoreThuis]</td><td>-</td><td>$row_gespeeld[ScoreUit]</td>";
echo "</tr>";
$i++;
}
echo "</table>";
}
}
?>