Jump to content

Echo .gif in table equal to table number?


Recommended Posts

OK I wrote this bit of code

for($i = 0; $i < $row_TableData['TourWins']; $i++) {
echo '<img src="Assets/Medal.gif" />';


Its meant to be displaying the img src a number of times defined by the number in the 'Tourwins'. so if there's a 2 in the database TourWins then the Medal.gif will echo twice depicting the 2 tourwins but all I keep getting is this: '; } ?>


Any ideas

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.