Quote:
|
Originally Posted by Seltaeb
I checked it all and i did nothing wrong. Everything is correct.
|
Well, when the code isn't buggy - and it isn't - and you didn't make any mistake, that leaves us with some sort of problem in your setup in regard to this CMS.
Have you tried to run the code under PHP 4.xx and a somewhat older version of MySQL ?, because that would give you an idea if your implementation of the code is working.
Quote:
|
Originally Posted by Seltaeb
If i login with user: test and pass: test, i go to failed.php if i login with user: test and pass: *test, he refreshes or something, the input fields are empty and i see login.php again. SO i really don't know what it could be, hope you can help!
|
In such a situation you could resort to plaster your code with echo statements that'll tell you the actual flow in the code and the actual contents in the variables, and that again will give you a precise idea as to what the problem is.
Remember to remove all the echo statements again afterwards.
BTW:
Have you checked if the password in the database = md5('$pass') ?
Have you checked if the names you're using for your tables are the same names in the database and and in your code.
Standard names are:
cmsarticles
cmsgroups
cmssections
cmsusers
Best regards,
bananstat