Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.
<cfquery name="GetStory" datasource="qNEWS"> select top 1 * from bnews where ID = '#ID#' and online = 1 order by id desc </cfquery> <cfoutput query="GetStory"> <cfset defaultbreakpos = len(GetStory.Story_body)*.6> <cfif NOT mid(GetStory.story_body, defaultbreakpos, 1) is " "> <cfset temppos = refindnocase("[\s]", reverse(left(GetStory.story_body, defaultbreakpos)))> <cfset breakpos = defaultbreakpos-temppos+1> <cfelse> <cfset breakpos = defaultbreakpos> </cfif> <cfset toptext = left(GetStory.story_body, breakpos)> #ParagraphFormat(toptext)# <a href="#GetStory.URL_LINK#" target="_blank">Read more</a> </cfoutput>
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.