473,398 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

submitting data to a database using asp

hi,

can anybody put me through on how to use asp to submit data into the date base.

thanks and God bless
Nov 12 '06 #1
4 1356
willakawill
1,646 1GB
hi,

can anybody put me through on how to use asp to submit data into the date base.

thanks and God bless
Hi. You will have to learn about ADO connections and recordsets. This is quite a lot to learn so give yourself some time :)
Nov 12 '06 #2
HI!
You should try this.......
but for the explanation u should refer some book


set conn= Server.CreateObject("ADODB.Connection")
set RS = Server.CreateObject("ADODB.Recordset")
db.Open "DSN=mydsn;UID=username;PWD=password“
SQL = "select * from tb_usr“
set rs = conn.execute(SQL)
rs.MoveFirst
do while NOT rs.eof
Response.Write rs("usrid") & “," & rs("usrpwd") & "<br>"
rs.MoveNext
loop
set conn = nothing
set RS = nothing

Have a nice Day


hi,

can anybody put me through on how to use asp to submit data into the date base.

thanks and God bless
Nov 12 '06 #3
willakawill
1,646 1GB
HI!
You should try this.......
but for the explanation u should refer some book


set conn= Server.CreateObject("ADODB.Connection")
set RS = Server.CreateObject("ADODB.Recordset")
db.Open "DSN=mydsn;UID=username;PWD=password“
SQL = "select * from tb_usr“
set rs = conn.execute(SQL)
rs.MoveFirst
do while NOT rs.eof
Response.Write rs("usrid") & “," & rs("usrpwd") & "<br>"
rs.MoveNext
loop
set conn = nothing
set RS = nothing

Have a nice Day
Unfortunately the question is about submitting data to a database and not writing data from a database to a page.
Nov 12 '06 #4
karthi84
271 100+
this code should help u
Expand|Select|Wrap|Line Numbers
  1. strConn1="PROVIDER=SQLOLEDB;SERVER=servername;UID=userid;PWD=pass;DATABASE=dbname"
  2. Set objConn1= Server.CreateObject("ADODB.Connection")
  3.   objConn1.Open strConn1
  4. strSQL1 = "insert into table_name set Credit_Notes="Credit_Notes", Last_Update_By="Last_Update_By              
  5.  
  6.  
  7. objConn1.Execute(strSQL1)
  8.  
any problem with the code post me a personal message so that i can help you
Dec 29 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: windandwaves | last post by:
Hi Folk This question has been bugging me for month. I have a website where people can enter stuff into a mysql database. Some of this information will already be shown in some textareas and...
5
by: Don | last post by:
I have a need to submit a form, but don't need the user to click on a button. How do I do this? Is there some way, using JavaScript, to setup a <form> tag to do this? Thanks, Don ----==...
1
by: Johnny | last post by:
Hello, I've read somewhere that you can validate form data before actually submitting it, similar to what validation controls would do. For example, I have a form that has 2 textboxes. I...
0
by: Marc DVer | last post by:
I am at kind of a loss on how to design a certain database project I am working on. Basically, we have a proprietary program with a standard backend (though we do not have direct write access to...
2
by: Syam | last post by:
Hello everyone, I am just barely two months old into learning asp.net and vb.net. Currently I am working on a project to store customer database. I have a question about creating a preview page:...
2
by: ickwong | last post by:
Hi guys! I'm a complete beginner of this and have just started learning scripting recently therefore I hope anyone here could give me some help. Basically this is what I've done already, I have an...
4
by: somaskarthic | last post by:
Hi I posted query about dynamically generating php code. Sorry for the inconvenience . I didn't given you the php code. Its just javascript code which dynamically create rows on button click event....
1
by: SachinBhargava | last post by:
Hi, I am faceing the problem while submitting the same page in ASP. When i am submitting the page, I am showing the java script alert message before closing the pop up window. My problem is, when...
7
by: bettor | last post by:
Hi guys, I have some text inputs which I would like to submit to a database via PHP using ajax. What i want to do is when the submit button is pressed I want the forms to disappear and on their...
1
by: asp beginner | last post by:
I am building an Eccomerce site and I am trying to make my shopping cart work. I am having a problem with when I have entered data into my form it is not submitting into my access database. This my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.