Link to home
Start Free TrialLog in
Avatar of starview
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
Avatar of rinfo
rinfo

You should have included functions.php - which i understand defines doLogin() function.
Avatar of starview

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 .
varchar is set at 32
That has been change in the function, but still does not connect.
ASKER CERTIFIED SOLUTION
Avatar of starview
starview

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It was the only solution that would work