Page 1 of 1

Complete novice needs help

Posted: Sat Aug 09, 2003 3:30 am
by dan23
I'm very new to PHP and I setup PHP, with MySQL and PHPMyAdmin about a couple of months back, i'm now starting to use PHP, but am having problems trying to get this script I downloaded to work on my home PC, i've tried it on my webspace and it works fine but can't seem to get it to work on localhost.

It's dvddbp version 1.45 that i've got, if someone could give it a try i'll be very grateful :)

http://sourceforge.net/project/showfile ... e_id=24792

I've entered all the correct info in the common.php file that is given and have run the dvd.sql file to create the tables in phpmyadmin, the problem I have is that when trying to login with the default test account, I get this error message

Login Failure

Double check your username and password.


I'm guessing there's some sort of cookie problem and perhaps I haven't quite setup php properly. I've created the tmp folder on the C:\ that is required in php.ini

Was if someone could try this script for me on their own computers, as it could be a config problem at my end which I need to iron out.

Any help is very much appreciated.

Thanks. :D

Posted: Sat Aug 09, 2003 7:39 am
by returnButton
hi.. that message is displayed when this condition fails:

if (md5($pass)==$found[1])

so best way would be to echo those two variables, see what they are, then work your way BACK up the code from there to see where they come from.
are you sure the tables are set up correctly and have data in them?

Good luck..

Posted: Sat Aug 09, 2003 9:20 am
by dan23
Thanks for replying returnButton, I know i've setup the tables properly as i've done the exact same procedure using the script with my webspace and it works fine. I've followed everything in the readme file as it says to login and use the default test account first. I know the test account is in the table as I can see it in PHPMyAdmin.

Did you get it running on localhost on your own PC? I'm wondering if there's a config problem at my end, perhaps it's not accepting the cookie properly? I'm not sure as i'm a complete beginner.

Thanks