Not sure what your menu issue is, but to get the last URL variable if
your recordset is empty might look something like this:

<cfset mylasturlvar = "" />
<cfif rcdset.recordcount is 0>
     <cfset mylasturlvar = listlast(cgi.query_string,"=") />
</cfif>

Cheers,
Kris

> I am trying to find out how to set the last url variable on a page if the 
> query I am running has no recordcount. Basically I am populating a table with 
> categories from the database and when there is no more records the menu 
> dissapears. This is not what I want. When there is no records for a 
> particular set of categories, I just want that menu to stay on the page 
> unless the user clicks back to the previous menu. Any Ideas?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250576
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to