JayLewis Posted April 8, 2007 Share Posted April 8, 2007 being a beginner im not sure how you use " in an echo... echo "<td class="tdback">"; how do you do it? I read up on it and forgot it, and cant find it again. echo "<td class=/"/tdback/"/>"; it was somethin like that.. im sure. Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted April 8, 2007 Share Posted April 8, 2007 use the other slash .... \ not / Quote Link to comment Share on other sites More sharing options...
JayLewis Posted April 8, 2007 Author Share Posted April 8, 2007 echo "<td class=\"\tdback\"\>"; like that? Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted April 8, 2007 Share Posted April 8, 2007 exactly, but you dont need the second slash echo "<td class=\"tdback\">"; that should work.. ithink if is as "the slash the underlines the character trying to escape" lol Quote Link to comment Share on other sites More sharing options...
JayLewis Posted April 8, 2007 Author Share Posted April 8, 2007 haha, nice one mate! Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted April 8, 2007 Share Posted April 8, 2007 Keep note that this technique also applies to single quotes (') too if you define your string with a single quotes example: echo 'this is a \'string\''; Quote Link to comment Share on other sites More sharing options...
JayLewis Posted April 8, 2007 Author Share Posted April 8, 2007 ah, thanks man! 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.