Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 09-10-2007, 10:32 PM Database value check
Novice Talker

Posts: 10
Trades: 0
Hi all,

I am currently using an Access database to store usernames and passwords for users. The login works, but it has no way of checking if the username submitted through the login form exists in the database. If the username does not exist, the user still cannot access the protected pages because the "checking" page does not detect the proper value in a session variable. My question is: does anybody know how to check and see if the username entered in the login form existis in the database before proceeding further?

All help is appreciated.

Thank You.
kw91 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-11-2007, 03:15 AM Re: Database value check
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Let Access do that for you. Send down a query like "Select * From Users Where Username = ?" and then it should either return zero records, or one. If the user doesn't exist by name, the query won't return any data, and the recordset you're using to pull the data will immediately set EOF to true.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Reply     « Reply to Database value check
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.42766 seconds with 12 queries