I will just do a cfset and insert it manually into the query. Each cat_id
will be identical for each set of sub_categories.


----- Original Message -----
From: "James Holmes" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Saturday, August 05, 2006 8:41 PM
Subject: Re: problem with insert


> For a given list of subcategories you want to insert, where is the
> cat_id coming from?
>
> On 8/6/06, Doug <[EMAIL PROTECTED]> wrote:
> > I want to insert each item individually into the table.
> >
> >
> > ----- Original Message -----
> > From: "James Holmes" <[EMAIL PROTECTED]>
> > To: "CF-Talk" <[email protected]>
> > Sent: Saturday, August 05, 2006 6:34 PM
> > Subject: Re: problem with insert
> >
> >
> > > No, from this:
> > >
> > > <cfloop list="#mylist#" index="listItem">
> > >
> > > myList is a string and listItem is a string. You then do this:
> > >
> > > INSERT INTO sub_categories (sub_category,cat_id )
> > > VALUES (<cfqueryparam value="#myList#">,<cfqueryparam
value="#listItem#">)
> > >
> > > You are inserting the whole list into sub_category and the individual
> > > list item into cat_id.
> > >
> > > What do you actually want to do?
>
> --
> CFAJAX docs and other useful articles:
> http://www.bifrost.com.au/blog/
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:248931
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to