Because when it goes through the page it looks for correct syntax before it calculates the code to execute??… so you’ve got two query tags before a close query tag hence an error…

 

Just a guess! Someone cleverer set me straight.

 

-----Original Message-----
From: Ian Westbrook (FDM) [mailto:[EMAIL PROTECTED]
Sent: 20 April 2004 14:12
To: CFUG List
Subject: [ cf-dev ] why the hell doesn't this work?

 

anyone any idea why this doesn't work?

 

<cfif IsDefined("form.search")>
<cfoutput query="allbooks">
<cfelse>
<cfoutput query="allbooks" STARTROW="#the_start#" MAXROWS="#records_to_display#">
</cfif>

I keep getting the 'extraneous </cfoutput> tag' error from the output's close. All I'm doing is choosing one of the output tags depending on whether a form variable exists or not. If I use either of the output tags straight off, it works fine.

 

any ideas?

 

Ian W

 

Reply via email to