BDwinsAlt Posted October 1, 2006 Share Posted October 1, 2006 How do I print the '<" symbol. I am trying to list a bunch of user names from my sql db.When i did echo, it would stop when it ran across "<". When I use print it ignores the rest and keeps going.How can I make the name: E><istance appear as more than 'E>"? Please help. Quote Link to comment Share on other sites More sharing options...
shocker-z Posted October 1, 2006 Share Posted October 1, 2006 so is it just < or is it with the quotes? if it's with " or ' then you need to addslashes when inputting the data and stripslashes on way out.. Quote Link to comment Share on other sites More sharing options...
BDwinsAlt Posted October 1, 2006 Author Share Posted October 1, 2006 Without the quotes.it's just E><istanceIt prints as E> Quote Link to comment Share on other sites More sharing options...
AndyB Posted October 1, 2006 Share Posted October 1, 2006 http://ca.php.net/manual/en/function.htmlentities.php Quote Link to comment Share on other sites More sharing options...
BDwinsAlt Posted October 1, 2006 Author Share Posted October 1, 2006 THIS WORKED. Thanks sooooo much. I have been trying to figure this out all day. ;D 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.