Solved

'<' cannot display this operator

Posted on 2014-12-19
5
71 Views
Last Modified: 2014-12-19
Hi,

I have a table called Major update that has the following fields

AppID       AppName                                                                     MajorUpgradeCost
9	name1                                                                 	<$100K
10	name2                                                                           $100K to $500K
13	name3                                                                 	$500K to $1M
14	name4                                                                 	$500K to $1M
18	name5                                                                            $1M to $5M
20	name6                                                                 	>$5M
22	name7                                                                 	<$100K
23	name8                                                                 	NULL
24	name9                                                                             NULL

Open in new window



I am trying to just loop thru the query and display the MajorUpgradeCost

the problem that I am having is that AppID 9 is not displaying '<$100K'  because of this operator
<

It display the operater > fine but not this < and I am not sure why!


<cfoutput query="FiveYearPlan"> 

#FiveYearPlan.MajorUpgradeCost#

</cfoutput>

Open in new window

0
Comment
Question by:lulu50
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 39

Expert Comment

by:gdemaria
ID: 40509083
It doesn't display because the browser thinks it's an HTML tag.   You can replace it with this symbol...  &lt;

You could also wrap it in <pre> </pre> tags although that makes the font monospaced as well (such as courier)
0
 
LVL 39

Accepted Solution

by:
gdemaria earned 500 total points
ID: 40509090
<cfoutput query="FiveYearPlan">
   #replace(FiveYearPlan.MajorUpgradeCost,"<","&lt;")#
</cfoutput>
0
 

Author Comment

by:lulu50
ID: 40509116
Oh!!!!!!!

YOU ARE awesome!!!!!

It's working now!!!!  

I tryed so many things but I couldn't get it to work.

Thank you for all your help and HAPPY HOLIDAY :-)
0
 

Author Closing Comment

by:lulu50
ID: 40509118
Thank youuuuuuuuuuuuuuuuuu

Happy Holidayyyyyyyyyyyyyyyyyyy
0
 
LVL 39

Expert Comment

by:gdemaria
ID: 40509134
You're very welcome and Happy Holidays!!
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question