Never mind, got it !!!!!


Doug



----- Original Message ----- 
From: "Douglas Brown" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, December 08, 2001 10:48 AM
Subject: Sort by asc, desc


> I have a forum page where I want the user to be able to choose from asc 
> or desc order. I cannot get it to work except in 1 link, I need to check 
> the value of the variable for the query
> 
> 
> 
> Here is what I have so far, I need to get all the links to work 
> independent of eachother.
> 
> 
> <cfset sortBy = 
> iif(IsDefined("URL.sortBy"),"URL.sortBy",DE("TitleAsc"))>
> <cfset sortBy = iif(sortBy EQ "TitleAsc",DE("Desc"),DE("Asc"))>
> 
> 
> 
> <a href="dsp_view_topics.cfm?sortBy=Title#sortBy#" 
> class="whiteUnderline">Discussion</a>
> <a href="dsp_view_topics.cfm?sortBy=Auth#sortBy#" 
> class="whiteUnderline">Posted By</a>
> <a href="dsp_view_topics.cfm?sortBy=#sortBy#" 
> class="whiteUnderline">Last Post</a>
> 
> 
> Thanks in advance
> 
> 
> 
> Doug
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to