Hi,
I know it's late but I have a newbie question for anyone awake.
I am trying to make a text link that would sort records from a query. I
would like to pass the parameter through the URL that says which column
to sort by but can't figure out how. This brings up another question, am
I using SQL/CFML properly to sort records on the fly. If you could tell
me how to pass the url variable that would be wonderful! Here is my code
so far:
<CFPARAM NAME="orderBy" default="vehicleType">
<CFQUERY DATASOURCE="test" NAME="listVehicles">
SELECT *
FROM Table1
ORDER BY #orderBy#
</CFQUERY>
<table CELLSPACING=3>
<tr>
<td align=center><b><!---This is where I am attempting
the first link---->Vehicle Type</b></td>
<td align=center><b>Year</b></td>
<td align=center><b>Manufacturer</b></td>
<td align=center><b>Description</b></td>
</tr>
<CFOUTPUT query="listVehicles">
<tr>
<td>#vehicleType#</td>
<td align=center>#modelYear#</td>
<td align=right>#manufacturerName#</td>
<td>#vehicleDescription#</td>
</tr>
</CFOUTPUT>
</table>
Please be critical if there are better ways to do things. This is my
first CFM page ever.....
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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