Chelsie Lawson wrote:
> did I mention that I'm completely new to CF....what would be the query code?
>
> <cfquery name="AddEval" datasource="studentsurvey">
> INSERT INTO Results
> </cfquery>
> do I have to list EVERY field with # # around them, separated by a comma??
Yes.
<cfquery name="AddEval" datasource="studentsurvey">
INSERT INTO Results
( field1, field2, field3, field4 ... )
VALUES
(
<cfqueryparam cfsqltype="fieldtype1" value="#form.fieldname1#">,
<cfqueryparam cfsqltype="fieldtype2" value="#form.fieldname2#">,
<cfqueryparam cfsqltype="fieldtype3" value="#form.fieldname3#">,
<cfqueryparam cfsqltype="fieldtype4" value="#form.fieldname4#">,
...
)
</cfquery>
look at the documentation for cfqueryparam to find out what to use for
the cfsqltype values.
Rick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:262222
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4