Second variable in CFQuery
Doubt I've named this right...
Ok, here's what I'm trying to do:
I have a CFQuery set up:
<cfquery name="myQuery" datasource="someSource">
SELECT DISTINCT
item_num,
item_name
FROM table1
</cfquery>
I know this is working fine. A little farther down my page I have a dropdown that gives a list of "item_name" entries. What I want to do is set another variable to item_num based on whatever is chosen in that dropdown. The item_name field is irrelevant to the rest of my page, it's just there to help out the end users with readability.
How do I do this? It's kind of driving me nuts trying to figure it out.
