I've successfully done this using the cf_exec custom tag. Pretty sure the
tag is on the allaire developer exchange. Here's an example:
<CFSET P = "##">
<CFSET G = "<">
<CFSET L = ">">
<CF_EXEC>
#G#cfscript#L#
while(x EQ 0) {
count = count + 1;
rahim = 1;
if (count EQ 5) {
x = 1;
<cfquery datasource = "#ds#" name = "data">
select *
from orders
</cfquery>
}
}
#G#/cfscript#L#
</CF_EXEC>
Rick
-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 01, 2000 12:55 PM
To: CF-Talk
Subject: RE: Using cfquery inside cfscript?
> Hello everyone. I was wondering if it was possible to do a
> cfinsert inside a cfscript.
No, it isn't. No CF tags may be used within CFSCRIPT.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists