|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Cannot figure out this problem
I made the changes and still it did not work. So I changed the code completely and rebuilt the statement and the same problem exists. I have no idea whats up. This one has my head scratching. All it says it that the login failed which is the error message I have for a failed login having something to do with counting the rows. argh.
PHP Code:
|
|
#2
|
|||
|
|||
|
double check the username and password in the database. double check that the password in the database is also hashed (I've made the mistake of adding the password un-hashed in text to a database). If that doesn't help then try to get more specific with the error. try selecting the password hash and user id out based on just the username and if no rows in the result, then echo "username not found". then compare the posted password hash to the hashed password from the database and if no match then you know the password is the problem. if both pass then you can select out the user based on the user id pulled before with the password. for debugging you can also echo out the password hash from the database and the posted hash to compare them on screen and find out why they aren't matching.
if you need any help with setting this up just ask and I can provide some code if it helps. |
|
#3
|
|||
|
|||
|
Ahh I figured it out. It was the password in the database. It was not coded like the result and therefore caused an error in the whole structure. I corrected that. Thanks.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Cannot figure out this problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|