If you hadn't said anything, I never would have figured it out ... well,
maybe not 'never', but still ;)
Update *is* what I want, but .. you made me realize that it's kinda' hard to
update a record in a database when the table doesn't have *any* data at all,
yet. (doh!)
I tossed some junk into the field and it updates just fine now.
Hey .. what do you know? Garbage in and good stuff out .. that's gotta be a
first. ;)
Thanks for everyone's help.
.Todd
----- Original Message -----
From: "Jeff Beer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 02, 2000 12:28 PM
Subject: RE: probs. inserting <textarea> into database
> If you are inserting, you need to change the query from UPDATE to INSERT
> INTO:
>
> INSERT INTO my_table (my_field)
> VALUES ('form.txtTextArea')
>
> If you are actually updating an existing record, you need to add the
primary
> key to the form, usually as a hidden field, so the UPDATE knows which
record
> to modify:
>
> UPDATE my_table
> SET my_field = '#Form.txtTextArea#'
> WHERE my_key = #form.mykey#
>
> Also, in the msg, your closing form tag is missing the '/' <grin>
>
> Good luck!
>
> Jeff
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.