Jump to content


Photo

Printing '<'


  • Please log in to reply
4 replies to this topic

#1 BDwinsAlt

BDwinsAlt
  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 01 October 2006 - 09:51 PM

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.

#2 shocker-z

shocker-z
  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 01 October 2006 - 10:01 PM

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..
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge

#3 BDwinsAlt

BDwinsAlt
  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 01 October 2006 - 10:02 PM

Without the quotes.

it's just E><istance

It prints as E>

#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 01 October 2006 - 10:02 PM

http://ca.php.net/ma...tmlentities.php
Legend has it that reading the manual never killed anyone.
My site

#5 BDwinsAlt

BDwinsAlt
  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 01 October 2006 - 10:05 PM

THIS WORKED. Thanks sooooo much. I have been trying to figure this out all day.  ;D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users