> I have a query that when the query returns something, it does
> the stuff in the <cfoutput Query = "check_registration">
> section. When it returns no hits, it totally skips the
> cfoutput. I'm new to cf and dbs but our cf guy here says it
> should do the cfoutput no matter what and then it should
> properly do the iff to test whether something was returned.
When you loop over a query with CFOUTPUT (or CFLOOP, for that matter), it
loops once for each record in the recordset. If you have an empty recordset
(zero records), it'll loop zero times.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- failing when query is named. Daniel Kessler
- Re: failing when query is named. Mystic
- RE: failing when query is named. J E VanOver
- RE: failing when query is named. Philip Arnold
- RE: failing when query is named. Greg Luce
- Re: failing when query is named. Jerry Johnson
- RE: failing when query is named. Dave Watts
- RE: failing when query is named. Pascal Peters
- failing when query is named. Daniel Kessler
- RE: failing when query is named. Andre Turrettini