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. Link to comment https://forums.phpfreaks.com/topic/22688-printing/ 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.. Link to comment https://forums.phpfreaks.com/topic/22688-printing/#findComment-102009 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> Link to comment https://forums.phpfreaks.com/topic/22688-printing/#findComment-102010 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 Link to comment https://forums.phpfreaks.com/topic/22688-printing/#findComment-102011 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 Link to comment https://forums.phpfreaks.com/topic/22688-printing/#findComment-102012 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.