Sql With Username And Password

teneika

New Member
Licensed User
Longtime User
Good Evening,* do you have a tutorial with a database that will check the username and password that a person enters to see if its correct before proceeding?

I need help I have searched all forums.
 

teneika

New Member
Licensed User
Longtime User
I want it to check the username and password with the info that is stored in the database and if it does not math to give a msgbox error. I currently have It coded without multiple usernames and passwords .. only one. That is why I would like the database
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
Are you speaking of a SQLite database. If so:
1. Use inputText of the dialog library to enter a user name and a password. You can also use 2 edittext boxes instead.
2. Have a table in the database that stores all users and passwords in 2 different fields.
3. Go over all the records in the table via a cursor. When the match is found, the user will be allowed to continue. If not, a message will pop up. Subsequently, the database is closed and the activity is finished.
This is not a terribly secure method, but works. If this is what you want and If you need help with the code, post again. many of us are always willing to help.
 
Upvote 0

teneika

New Member
Licensed User
Longtime User
Well my database is using easyphp but I have not tried SQL lite . I am trying to link it to the local server to read off of the list of usernames and passwords to see If it matches. Do you have a tutorial for the one you are speaking of?
 
Upvote 0
Top