$query = mysql_query("SELECT hour, team1, team2, goalsteam1, goalsteam2, competition FROM `matches` WHERE `date`='". $daterow['date'] ."'");
while($row = mysql_fetch_array($query)){
$hour = substr($row['hour'],0,5);
$teamemblem = mysql_query("SELECT emblem FROM `teams` WHERE `team`='".$row['team1']."'");
$teamemblemrow = mysql_fetch_assoc($teamemblem);
echo '
<tr class="teamtable">
<td style="width:60px; font-size:11px;">'.$hour.'</td>
<td style="width:145px; font-size:11px;"><img width=24px height=24px src='.$teamemblemrow['teamemblem'].'/></td>
<td style="width:15px; font-size:11px;">'.$row['goalsteam1'].'</td>
<td style="width:15px; font-size:11px;">'.$row['goalsteam2'].'</td>
<td style="width:145px; font-size:11px;">'.$row['team2'].'</td>
<td style="width:120; font-size:11px;">'.$row['competition'].'</td>
</tr>';
}
I tried everything, but the emblem part won't work. It refuses to read from the database. Thing is printing $row['team1']
works, but I don't get why it just won't read..
Any help?