Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No output from query...

Status
Not open for further replies.

ivalum21

MIS
Jul 14, 2004
63
US
I run my query below, but I don't get any output. I outputted the URL.CatID to be sure that was getting passed, and it is...so it has to be something with my output statement.

Help please!

Code:
<cfquery name="GetQuestion" datasource="FAQ">
	SELECT *
	FROM FAQQandA
	WHERE FAQID = #URL.CatID#
</cfquery>

<html>
<head>
	<title>Compliance FAQ</title>
</head>

<body>
<cfoutput>
	<td>
	<b>#FAQQuestion#</b><br>
	<i>#FAQAnswer#</i>
	</td>
</cfoutput>
 
try this:

Code:
<cfdump var="#GetQuestion#">

and see if you are getting anything from your resultset.



ICQ: 54380631
online.dll
 
Code:
<cfoutput  [b]query="GetQuestion"[/b]>

<!---all your statements here--->
</cfoutput>



try that and see if it works.

grtfercho çB^]\..
"Imagination is more important than Knowledge" A. Einstein
-----------------------------------------------
 
grtfercho is right, you need to tell you're <cfoutput> tags what they're supposed to output.



Hope This Helps!

Ecobb

&quot;My work is a game, a very serious game.&quot; - M.C. Escher
 
Well...I tried all of your suggestions, and I still get no output. When I used the <cfdump>, it displayed the headings of my columns, but no data.

And I put in the <cfoutput query> tags...and I still got nothing.

Any ideas?
 
Then there must not be a record in the database matching the URL.CatID that you're passing.



Hope This Helps!

Ecobb

&quot;My work is a game, a very serious game.&quot; - M.C. Escher
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top