<CFQUERY NAME="Products" DATASOURCE="shopping">
SELECT      Products.ProductTitle, Products.CategoryID, Products.ProductID
FROM        Products, Category 
WHERE       Products.CategoryID = #URL.CategoryID#
</CFQUERY>

<head>
    <title>Untitled</title>
</head>

<CFLOOP QUERY="Products">
<CFIF Products.ProductID GT 1000>
<CFBREAK>
</CFIF>

<CFOUTPUT>

#Products.ProductTitle#

</cfoutput>
</cfloop>





OK there is a big problem with this, it wants to output 2 times, so if there 
is just one product to return say "Paper", it will return this value twice, 
is there an error in my code???

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to