asked on
<cffunction name="myFunction" output="false" access="remote" returntype="string" hint="">
<cfargument required="true" type="string" name="Name" />
<cfargument required="true" type="string" name="Age" />
<cfquery ...>
UPDATE MYDB.table
set Status = 'Complete', Notes = 'blah'
where Age = <cfqueryparam value = "#Trim(ARGUMENTS.Age)#" CFSQLType = "CF_SQL_VARCHAR">
</cfquery>
--------this is where i want to insert a record for each of the ones that were updated above....
<cfquery ...>
INSERT INTO myDB.Table2 (ID, age, blah)
VALUES ...
</cfquery>
I know this isn't a complete query/example but I am hoping I gave enough information. Thank you.