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 Quote 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>'; Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/170647-solved-correct-way/#findComment-900050 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.