SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: output only after <br>
-
Jun 10, 2004, 14:15 #1
- Join Date
- Apr 2003
- Location
- daejeon, South Korea
- Posts
- 2,223
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
output only after <br>
Code:data in the record 1 of myTable I am a boy<br> He is good
Code:CFML code <cfquery datasource="DS" name="test"> select ID, message from myTable where ID=1 </cfquery> <cfoutput query="test"> #message# </cfoutput> its result I am a boy He is good
my target result would be the following.
Code:target result He is good
Thanks in Advance
-
Jun 10, 2004, 18:51 #2
- Join Date
- Jul 2002
- Location
- Toronto, Canada
- Posts
- 39,347
- Mentioned
- 63 Post(s)
- Tagged
- 3 Thread(s)
Code:<cfoutput query="test"> <cfif FindNoCase('<br>',test.message)> #Right(test.message, Len(test.message) - FindNoCase('<br>',test.message) - 3) <cfelse>#test.message#</cfif> </cfoutput>
Bookmarks