starview
asked on
checking a login php script
I have a php login in script and it doesn't seem to work, I put the username in and password but it shows incorrect password or username.I know they are correct.
I checked my mysql with a test mysql and it is working,
But the login script does not seem to be connecting to the database.
My config file seems to be filled out correctly.
I am putting up my config file, login file.
If there is anything else you need let me know
This is just a test program so I am not worry about passwords they can alway be change
login.php
config.php
I checked my mysql with a test mysql and it is working,
But the login script does not seem to be connecting to the database.
My config file seems to be filled out correctly.
I am putting up my config file, login file.
If there is anything else you need let me know
This is just a test program so I am not worry about passwords they can alway be change
login.php
config.php
You should have included functions.php - which i understand defines doLogin() function.
ASKER
ASKER
for to enter it
You have used password function in the query for mysql.
This function has know to fail when password field is defined having less then 15 varchar.
Just increase the field for password to varchar(16) and see if it works ok .
This function has know to fail when password field is defined having less then 15 varchar.
Just increase the field for password to varchar(16) and see if it works ok .
ASKER
varchar is set at 32
ASKER
That has been change in the function, but still does not connect.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It was the only solution that would work