|
|
|
|
![]() ![]() |
May 31 2008, 08:34 PM
Post
#11
|
|
|
Member [Level 2] ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 87 Joined: 21-April 08 From: Errm...this maps dodgey...i think im in the desert... Member No.: 61,127 |
Good point lol I have absolutely no idea, a friend recommended
CODE { $query="SELECT email,password,username FROM users WHERE password = '$email'"; But i can't see that working either and it didn't! |
|
|
|
Jun 1 2008, 08:30 AM
Post
#12
|
|
|
apt-get moo ![]() Group: [MODERATOR] Posts: 2,238 Joined: 28-May 05 From: Devon, England Member No.: 7,593 ![]() myCENT:45.20 |
Good point lol I have absolutely no idea, a friend recommended CODE { $query="SELECT email,password,username FROM users WHERE password = '$email'"; But i can't see that working either and it didn't! You've still got password equal to email...? Surely that line should either be: CODE { $query="SELECT * FROM users WHERE email = '$email'"; Or: CODE { $query="SELECT * FROM users WHERE password = '$encryptedPassword'"; Identifying users by their password seems somewhat bizarre, so I assume you want the first example - getting a list of people with the email address you want. |
|
|
|
Jun 1 2008, 08:20 PM
Post
#13
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 66 Joined: 2-April 08 From: Berkshire, England Member No.: 60,270 |
Why don't you use Mysql query? that would make it a lot easier!
Don't jump in at the deep end trying to make a super secure login script with loads of features, a simple register, login and logout is fine for a first try! from there you can make more adjustments to it later. Also i noticed you don't seem to have a members page yet, what use is a forgotten password script if your visitors have no reason to come back!. Like I said don't jump in at the deep end, simple Mysql query's are fine! if you do that there's little chance of errors, and the errors that you do get are simple mistakes, ones that a novice could correct easily. |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 22nd November 2008 - 10:02 PM |