<cfset ftObj = CreateObject("component","#FTVAR_WEBROOT#.com.fusetalkapi")>
<cfset groupID=#URL.groupID#>
<cfset theCatID = #URL.catID#>
<cfset theSubType = "cat">
<cfset qGetGroupUsers = ftObj.GetGroupUsers(groupID, 4)>
<cfscript>
ftresult = ftObj.InsertSubscription(qGetGroupUsers.iuserid, theCatID,
theSubType);
</cfscript>
<cfloop query="qGetGroupUsers">
> <cfscript>
> ftresult = ftObj.InsertSubscription(qGetGroupUsers.iuserid, theCatID,
> theSubType);
> </cfscript>
</cfloop>
One question:
Why have you done all those <cfset> tags in CFML, and then just the one
line done in <cfscript> instead? There's no gain to be had having ONE line
of <cfscript>. Yo might as well just have a <cfset>. Or - better - do the
whole lot in a <cfscript> block (you'd need to change you cfloop to a for()
loop, though, obviously.
--
Adam