Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues > ColdFusion

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-06-2008, 05:01 AM   PM User | #1
kjab
New to the CF scene

 
Join Date: Nov 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
kjab is an unknown quantity at this point
Coldfusion form processing

Hello,

I have created a form based on values from a MSSQL database
Code:
<cfoutput query="Items">
	<tr>
	    <td>#trim(Item)# #DollarFormat(Price)#</td>
	    <td><input name="#trim(Item)#" type="text" value="Qty"></td>
	</tr>
</cfoutput>
how can i query the database and use the results from the item query to process the form



Thanks in advance
kjab is offline   Reply With Quote
Old 03-22-2009, 07:06 PM   PM User | #2
slappyjaw
Regular Coder

 
slappyjaw's Avatar
 
Join Date: Mar 2009
Location: Wonderland!
Posts: 146
Thanks: 14
Thanked 3 Times in 3 Posts
slappyjaw has a little shameless behaviour in the past
Code:
<cfquery name="name of query" datasource="your datasource address" username="usernameofdatasource" password="password for datasource" result="and your results for the query!">
Please fill in the information and it will be the query part of the script.
slappyjaw is offline   Reply With Quote
Reply

Bookmarks

Tags
form, mssql

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:54 PM.


Advertisement
Log in to turn off these ads.