Element undefined. What am I missing here?
I can't seem to get this template to work correctly. As it is now it generates the following error message;
Element PRODUCTTYPE is undefined in PRODUCTS.
Here is my code;
<cfquery datasource="farmky" name="getProductLists">
SELECT CatalogGroup.ID,
CatalogGroup.Group,
Products.ProductID,
Products.Manufacturer,
Products.ProductTitle,
Products.CatalogGroup,
Products.ProductType,
ProductTypes.ID,
ProductTypes.ProductType
FROM ProductTypes INNER JOIN (CatalogGroup INNER JOIN Products ON CatalogGroup.ID = Products.CatalogGroup) ON ProductTypes.ID = Products.ProductType
ORDER BY ProductTitle ASC
</cfquery>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<cfdump var="#getProductLists#">
<cfoutput query="getProductLists" group="#Products.ProductType#">
<table width="850" border="0">
<tr>
<td colspan="3" bgcolor="##CCCCCC"><strong>#ProductTypes.ProductType#</strong></td>
</tr>
<cfoutput><tr>
<td width="236" align="left">#ProductTitle#</td>
<td width="254" align="left">#Manufacturer#</td>
<td width="212" align="left">#Group#</td>
</tr></cfoutput>
</table></cfoutput>
</body>
</html>
The results of my <cfdump> do not show anything for the ProductTypes.ProductType column. I suspect the issue is with either my JOIN statements in my FROM clause or my group syntax or both. Any help on this would be greatly appreciated. Thanks in advance.
