ScottWilson Posted May 6, 2014 Share Posted May 6, 2014 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 Quote Link to comment Share on other sites More sharing options...
Solution mac_gyver Posted May 6, 2014 Solution Share Posted May 6, 2014 you need to use a complete opening php tag <?php Quote Link to comment Share on other sites More sharing options...
ScottWilson Posted May 6, 2014 Author Share Posted May 6, 2014 oh yer ddduuuuurrrr lol it works now Quote Link to comment Share on other sites More sharing options...
Ch0cu3r Posted May 6, 2014 Share Posted May 6, 2014 Lesson learned is to always use the full opening php tag. Not all php configurations have short_open_tag enabled Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.