goldensunrise
Programmer
- Nov 22, 2000
- 18
Why does this not work?
<CFLOOP INDEX="Loop" FROM="1" TO="9">
<CFQUERY NAME="Loop" DATASOURCE="Project">
SELECT DISTINCT Catagory.CatagoryID, Catagory.Catagory, SiteListing.*
FROM SiteListing, Catagory
WHERE (SiteListing.CatagoryID = #Loop#) AND Catagory.CatagoryID = SiteListing.CatagoryID
</CFQUERY>
<CFOUTPUT QUERY="Loop">
#Catagory#
(#Loop.RecordCount#)<BR>
</CFOUTPUT>
</CFLOOP>
<CFLOOP INDEX="Loop" FROM="1" TO="9">
<CFQUERY NAME="Loop" DATASOURCE="Project">
SELECT DISTINCT Catagory.CatagoryID, Catagory.Catagory, SiteListing.*
FROM SiteListing, Catagory
WHERE (SiteListing.CatagoryID = #Loop#) AND Catagory.CatagoryID = SiteListing.CatagoryID
</CFQUERY>
<CFOUTPUT QUERY="Loop">
#Catagory#
(#Loop.RecordCount#)<BR>
</CFOUTPUT>
</CFLOOP>