<cfloop from="1" to="#FORM.numberOfRecords#" index="Row">
<cfparam name="FORM.sub_category_other_input#Row#" default="1">
<cfparam name="FORM.seminars_beginner#Row#" default="0">
<cfparam name="FORM.seminars_intermediate#Row#" default="0">
<cfset sub_category_id = FORM["sub_category_id"& Row]>
<cfset sub_category_other_input= FORM["sub_category_other_input"& Row]>
<cfset seminars_beginner= FORM["seminars_beginner"& Row]>
<cfset seminars_intermediate= FORM["seminars_intermediate"& Row]>
<cfquery name="getMyData" datasource="#request.dsn#" username="#request.dsnusername#" password="#request.dsnpassword#">
INSERT INTO tg_2010_training_guide_topic_selections
(advertiser_id,
sub_category_id,
sub_category_other_input,
seminars_beginner,
seminars_intermediate
)
VALUES
(
<cfqueryparam value="#advertiser_id#" cfsqltype="cf_sql_integer">,
<cfqueryparam value="#sub_category_id#" cfsqltype="cf_sql_integer">,
<cfqueryparam value="#sub_category_other_input#" cfsqltype="cf_sql_varchar">,
<cfqueryparam value="#seminars_beginner#" cfsqltype="cf_sql_integer">,
<cfqueryparam value="#seminars_intermediate#" cfsqltype="cf_sql_integer">
)
</cfquery>
</cfloop>
|