onthespot Posted August 17, 2009 Share Posted August 17, 2009 is this the correct way to make this a jpg? echo "<td><img src=\"images/awards/'.$awardtype.'.jpg'\" width=\"8\" height=\"18\" /></td>"; thankyou Link to comment https://forums.phpfreaks.com/topic/170647-solved-correct-way/ Share on other sites More sharing options...
deansatch Posted August 17, 2009 Share Posted August 17, 2009 Assuming $awardtype is the name of the jpg without the extension: echo "<td><img src=\"images/awards/$awardtype.jpg\" width=\"8\" height=\"18\" /></td>"; OR echo '<td><img src="images/awards/'.$awardtype.'.jpg" width="8" height="18" /></td>'; Link to comment https://forums.phpfreaks.com/topic/170647-solved-correct-way/#findComment-900045 Share on other sites More sharing options...
onthespot Posted August 17, 2009 Author Share Posted August 17, 2009 First one works a treat, thankyou very much Link to comment https://forums.phpfreaks.com/topic/170647-solved-correct-way/#findComment-900050 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.