|
| |
|
|
hme1
Posts: 4 From: Martinez, CA. USA Status: offline
|
Updating or deleting records in a database - 3/24/2001 20:51:00
I have an area on my web site where people can update their “customer profile.” (At least that is what I’m trying to accomplish) First they pull their information up from a drw by account number. http://www.greenhouseservice.com/e-service/existing_customers.asp Use account#00001 to bring up a default record. After clicking on their name, they are taken to the form to edit their record. (Their existing information is pulled over to the edit form in query string) When the updated information is submitted to the update drw, I’m getting an error. The drw I am pulling from is called Customers. I am using a custom SQL code. Whenever I choose custom SQL, no form fields come up. Is this right? What am I doing wrong? Any help that can be offered would be much appreciated. I have pasted the SQL code below. UPDATE Customers SET Name='::Name::', Address='::Address::', City='::City::', ZipCode=::ZipCode::, PhoneNumber=::PhoneNumberl::, EMail= '::EMail::' WHERE AccountNumber= ::AccountNumber::
|
|
|
|
Spooky
Posts: 26603 Joined: 11/11/1998 From: Middle Earth Status: offline
|
RE: Updating or deleting records in a database - 3/25/2001 20:28:00
Youll need to store "AccessNumber" in a hidden field, so that it knows what record to update . "PhoneNumberl" is a typo? Should be PhoneNumber I think?------------------ Spooky "I am Spooky of Borg. Prepare to be assimilated, babycakes!" Subscribe to OutFront News Database / DRW Q & A The Spooky Login!
|
|
|
|
adamhum
Posts: 28 From: Tucson, Az, USA Status: offline
|
RE: Updating or deleting records in a database - 3/25/2001 20:32:00
Spooky, do you mean Accountnumber or Accessnumber?
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|