Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
jack456 #1
CFOUTPUT QUERY rowcount = 0
Hello,
I have a query which return 0 row.
I have a CFOUTPUT QUERY which try to output my query.
Coldfudion enter in the CFOUTPUT once EVEN if my query return 0 row.
Is it correct?
I thougth Coldfusion will never enter in the CFOUTPUT QUERY because the
rowcount is 0 (zero).
Could you confirm please. I try to reach the answer on internet but I found
nothing.
Thanks.
jack456 Guest
-
question about SQL query and cfoutput with INNER JOIN
I have a query that pulls data from two related tables (an Article Table and a Photo table, linked by ArticleID) Lets say i have 3 photos that are... -
.Recordsaffected or @@RowCount
Is there a way in native ColdFusion, without going through a SQL Server stored procedure, to get the number of records affected by an UPDATE stmt?... -
rowcount
How can I get a count of rows in a datagrid? -
Cannot put <cfoutput> around a <select> statement usinga query.
<select name="t#this_tourn#_course_id"> <cfoutput query="get_courses"> <option value="#course_id#"> #course_name# - Par #par#</option> </select>... -
<cfoutput query> and TABLE formatting
HI, I'm trying to output images from a database using <cfoutput query>. That part works fine. But the images display all in one column, one... -
redevolve #2
Re: CFOUTPUT QUERY rowcount = 0
Yes, it will never enter your <cfoutput query="q"> tag block.
Post your codes to let us check maybe ?
redevolve Guest
-
Dan Bracuk #3
Re: CFOUTPUT QUERY rowcount = 0
You have to check for this in your code.
<cfif query.recordcount is 0>
do something
<cfelse>
do something else
Originally posted by: jack456
Hello,
I have a query which return 0 row.
I have a CFOUTPUT QUERY which try to output my query.
Coldfudion enter in the CFOUTPUT once EVEN if my query return 0 row.
Is it correct?
I thougth Coldfusion will never enter in the CFOUTPUT QUERY because the
rowcount is 0 (zero).
Could you confirm please. I try to reach the answer on internet but I found
nothing.
Thanks.
Dan Bracuk Guest
-
jack456 #4
Re: CFOUTPUT QUERY rowcount = 0
First, Thank both for answer.
I found the problem.
In debug mode the query return 0 row BUT little far away there is an
"QueryAddRow"! It's why Coldfusion enter in the cfoutput tag.
Now I have to found WHY there is an QueryAddRow but this is another story!
Thanks anymay.
jack456 Guest



Reply With Quote

