CFLoop and inputting values


it has been many many years since have used cf, rusty!

 

i have standard form, has approx 10 rows of data.  know can use cfloop insert data, question before go ahead , is...........

 

how loop based on number of rows in form, can't remember.

 

here insert.

 

<cfloop

<cfquery name="new_item" datasource="prouddb">

insert s_venue_stock

(venue,

item,

opening_balance,

stock_in,

stock_out

)

values (

#form.venueid#,

#form.itemid#,

#form.openbal#,

#form.stockin#,

#form.stockout#             

)

</cfquery>

its ok ive worked out now............i rusty!



More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support