Solved

'<' cannot display this operator

Posted on 2014-12-19
5
65 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
  • 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

785 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