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"].'\')" />'; Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
chandler Posted September 20, 2010 Author Share Posted September 20, 2010 wicked thanks you sooo much Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
chandler Posted September 20, 2010 Author Share Posted September 20, 2010 ok thanks for that 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.