Jump to content

Archived

This topic is now archived and is closed to further replies.

BDwinsAlt

Printing '<'

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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..

Share this post


Link to post
Share on other sites
http://ca.php.net/manual/en/function.htmlentities.php

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.