Hope someone can help out again with a bit of syntax.
I have a bit of code that acts a little loop displaying records from a table :
<?php
$groups = array();
while ($row = mysql_fetch_assoc($rs2011nominees)) {
$groups[$row['Alphabet']][] = $row;
}
foreach ($groups as $alphabet_letter => $rows) {
echo "<tr><td><br><h2>$alphabet_letter</h2><br></td></tr>";
foreach ($rows as $row) {
echo "<tr><td><a href=\"http://www.goodsafariguide.com/hit_counter2.php?LodgeID=" . $row['LodgeID'] . " \" >" . $row['Lodge'] . " </a></td></tr>";
}
}
?>
I'd like to add in another field next to the Lodge field, complicated by the fact that its to display an image. (The field is winner10, and just contains the string winner10.gif which references the gif.)
So that would normally look like :
<img src="../images/<?php echo $row['winner10']; ?>" alt="Image Name" border="0"/>
But I'm not sure how to add that in to the existing code, so if anyone could for whom its second nature could help out, I'd be very grateful.
Thanks.