chandler Posted September 20, 2010 Share Posted September 20, 2010 Hi, can any see is the are mistakes in this for me. Thanks echo'<img src="skinFiles/'.$skin['thumb_name'].'"class="skinImage" onclick="changeSkin(\'skinFiles/'.$skin["css_name"].'\')" />'; Link to comment https://forums.phpfreaks.com/topic/213928-are-there-any-errors-in-this-line-of-code/ Share on other sites More sharing options...
rwwd Posted September 20, 2010 Share Posted September 20, 2010 try this:- echo "<img src=\"skinFiles/".$skin['thumb_name']."\" class=\"skinImage\" onclick=\"changeSkin('skinFiles/".$skin['css_name']."');\" />"; Rw Link to comment https://forums.phpfreaks.com/topic/213928-are-there-any-errors-in-this-line-of-code/#findComment-1113405 Share on other sites More sharing options...
chandler Posted September 20, 2010 Author Share Posted September 20, 2010 wicked thanks you sooo much Link to comment https://forums.phpfreaks.com/topic/213928-are-there-any-errors-in-this-line-of-code/#findComment-1113406 Share on other sites More sharing options...
rwwd Posted September 20, 2010 Share Posted September 20, 2010 Cool, just remember that when you use the echo or indeed build a string to be echoed later on whatever you open with (') or (") you MUST escape as required & CLOSE with the same, or the output will not be as expected. Rw Link to comment https://forums.phpfreaks.com/topic/213928-are-there-any-errors-in-this-line-of-code/#findComment-1113407 Share on other sites More sharing options...
chandler Posted September 20, 2010 Author Share Posted September 20, 2010 ok thanks for that Link to comment https://forums.phpfreaks.com/topic/213928-are-there-any-errors-in-this-line-of-code/#findComment-1113408 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.