All,

I've got three queries all passing variables from previous queries. The issues? 
The second query returns 4 records.  I want to use IDs for these records in 
query #3.
However what I have only returns only 1 record. I want all 4 ID values in query 
#3

<!-- GET EVERYTHING FROM CATEGORIES -->
<!-- QUERY ONE -->
<cfquery name="cats" datasource="cfweb" maxrows="5">
SELECT Categories.Name, Categories.Category_ID 
FROM Categories
</cfquery>
<!-- GET INFO FROM PRODCAT WHERE CATID = CATS.CATID THIS SHOULD RETURN A LIST 
OF PROD IDS -->
<!-- QUERY TWO -->
<cfquery name="PRODCAT" datasource="cfweb">
SELECT ID, Product_ID, Category_ID 
FROM Product_Category
WHERE Category_ID = #CATS.Category_ID#
</cfquery>
<cfquery name="PROD" datasource="cfweb">
SELECT NAME 
FROM Products
WHERE Product_ID = #PRODCAT.Product_ID#

Thanks

D

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211090
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to