Security issues related to php and mysql usage. How to make your code secure? Security measures and configurations? It's all in here!
Moderators: macek, egami, gesf
- php-forum Active User
- Posts: 266
- Joined: Tue Apr 08, 2003 5:18 am
- Location: Ottawa, Canada
create table yournamehere (id int auto_increment primary key, username varchar(20), password varchar(50))
and i am guessing that all the passwords have to be md5'ed
hope that helps
- New php-forum User
- Posts: 103
- Joined: Sun Feb 06, 2005 10:54 am
Now how i match this password with a password given by a php driven site.
- Site Admin
- Posts: 2223
- Joined: Fri Mar 05, 2004 7:15 am
- Location: Täby, Stockholms län
the password that you are getting from a user should be md5 encoded.. then you simply try to selelct the user with that use4rname and that md5 encoded password... in case you get 0 rows: wrong username or password error should be thrown..
Who is online
Users browsing this forum: No registered users and 1 guest