Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 26th, 2004, 10:33 PM
t_b_a_t_e t_b_a_t_e is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 17 t_b_a_t_e User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 21 m 43 sec
Reputation Power: 0
Question "help"

hi! everyone i need a code on how to add my Personal Information my database. I have already my Personal Information is firstname, lastname, nickname, address, city/town, province, country, e-mail, phone, communication mode preferred (Postal Mail, E-mail, Telephone), occupation, industry. And I need a code on how to add and edit at my database.

Reply With Quote
  #2  
Old September 30th, 2004, 02:37 PM
koolgift koolgift is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 96 koolgift User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 52 m 57 sec
Reputation Power: 5
Firstly, Open a DB connection
Code:
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "Database Connection"


For inserting data,
Insert into [tablename] ([column name]) values ([data to coresponding column])
Code:
strSQl="insert into yourTableName ('firstname', 'lastname', 'nickname', 'address', 'city/town', 'province', 'country', 'e-mail', 'phone', 'communication mode preferred' ,'occupation', 'industry')
values('micheal','line','cuty','abc','abc','abc','  abc','abc@hotmail.com',45454545,'mail','CEO','IT')  "


For updating data,
Update [tablename] set [column name]='[data to update' where [condition]
Code:
strSQl="update yourTableName set address='def', phone=12345786 where firstname="micheal' and last name='line'"


execute query
Code:
Conn.Execute strSQl

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > "help"


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT