Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · ASP.NET Newsletter Application · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : ASP : ASP 3.0 : how to check the data stored in database in ASP Signup · Login
Author Thread
how to check the data stored in database in ASP
Posted in tutorial: Built in ASP objects - Active Server Pages Reference
·  hanoz
User
Joined: 22 Oct 2003
Total Posts: 1

how to check the data stored in database in ASP

Posted: 22 Oct 2003
hi there , i wanna check the data being enetered by the user in a form with that stored in the database , using the select command , i tried to do it like
Dim unam,p1
Dim DBcon, DBstr, sel
unam=request.form("thename")
p1=request.form("thepass")
Set DBcon = Server.CreateObject("ADODB.Connection")

DBstr = "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath(".") & "\eSwin.mdb"
DBcon.Open DBstr
sel="select username from members where username='unam'"
DBcon.Execute sel
DBcon.Close
Set DBCon = Nothing
response.write sel
Want to leave a comment? Login or Register for free!

Users Who Have Visited This Thread In Last 24 Hours
1 Visitor

Login to post a comment or start a new thread
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2010 Stardeveloper.com, All Rights Reserved.