The output I am getting is correct. But it displays it three times, instead of one. I am display a question, and the answer to that question. I want it to run through that and display each question and answer once, but it displays it three times. Any ideas??
Here is my code:
Here is my code:
Code:
<cfquery name="GetQuestion" datasource="ComplianceFAQ">
SELECT *
FROM FAQQandA, FAQQandACategory, FAQCategory
WHERE FAQQandA.FAQID = FAQQandACategory.FAQID
AND FAQQandACategory.FAQCatID = #URL.CatID#
</cfquery>
<html>
<head>
<title>Compliance FAQ</title>
</head>
<body>
<cfoutput query="GetQuestion">
<td>
<b>#FAQQuestion#</b><br>
<i>#FAQAnswer#</i>
</td>
</cfoutput>
</body>
</html>