navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Database updates

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Database updates
Page: [1]
 
mjmtravel

 

Posts: 189
Joined: 7/30/2006
Status: offline

 
Database updates - 2/2/2008 20:35:05   
I have a question about this code and the database fields. I'm having the customer update their information to a database and I have it working until I get down to the number/text fields.

UPDATE tableName SET (dbfield1 = '::formfield1::', etc. WHERE ID = ::ID::)

Question 1. I have a database with fields listed as dates and numbers, but they are set up as text. On my update page with the above code, do I need to remove the apostraphes on a form field that has a number in it, even if the database list's it as text or can I leave them in because the database fields are all text.

Question 2. Do I have to have the database fields that contain numbers set as a number or date?

The reason I'm asking is because I have quite a large form with lots of dates, phone numbers, text and I'm having a hard time getting it to update correctly.
Thanks
codenamebill26

 

Posts: 15
Joined: 1/19/2008
Status: offline

 
RE: Database updates - 2/3/2008 1:57:40   
you can try,


setform = formfield1
setid = ID


UPDATE tableName SET (dbfield1 = "&setform&", etc. WHERE ID = "&setid&")



question 2 = numbers

(in reply to mjmtravel)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Database updates
Page: [1]
Jump to: 1





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