I am running a query,
<cfquery name="getRecords" datasource="******">
SELECT Prods.*, ProdMatrix.*, Categories.*
FROM Prods, ProdMatrix, Cats
WHERE (Prods.ProdID = ProdMatrix.ProdID) AND (Prods.CatID = Cats.CatID)
</cfquery>
All information is displaying properly. What I would like to do is show the user the columns that have lists but have the selected value of that column selected. I tried using the cfselect and all I get is the value of the first record for all the records. How do I set the cfselect to properly display the selected value?
<cfquery name="getRecords" datasource="******">
SELECT Prods.*, ProdMatrix.*, Categories.*
FROM Prods, ProdMatrix, Cats
WHERE (Prods.ProdID = ProdMatrix.ProdID) AND (Prods.CatID = Cats.CatID)
</cfquery>
All information is displaying properly. What I would like to do is show the user the columns that have lists but have the selected value of that column selected. I tried using the cfselect and all I get is the value of the first record for all the records. How do I set the cfselect to properly display the selected value?