|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Chop Chop
|
PHP/MySQL Help
Hey,
I am using a login script for my website that I wrote for a former site. On that site it worked, but now it won't. When I try to login it says that the information is not valid (which it is). The code is below. I was wonder what I doing wrong. I am using phpMyAdmin for creating the databases and was wondering if that could cause problems. I saw a new setting that says "Collation" and it is set to latin-swedish. I have never used that in previous version and thought that could be causing this. Any help would be appreciated. Thanks! PHP Code:
__________________
Main Computer: Intel Core i5 2500K | AsRock Extreme3 Z68 | Corsair Vengeance 2 x 4GB DDR3 1600 | EVGA GTX460 768MB | Western Digital Caviar 750GB 7200RPM SATAII | Mushkin 60GB SSD w/ SRT enabled | Asus 20X DVD Burner | Antec 550W Modular | Cooler Master HAF 912 w/ 4 fans | NXZT Sentry Mesh fan controller | W7 | 2 x 23" LG IPS Monitors Laptop: Asus EEE 1000HE | 2GB RAM | Ubuntu Laptop: Lenovo Thinkpad T60p | 4GB RAM | W7 |
|
|
|
|
|
#2 |
|
Wx geek
Join Date: Aug 2005
Location: Indiana
Posts: 6,638
|
What information is invalid? Can you give us an exact error message?
__________________
"It is the way of man to make monsters and it is the nature of monsters to destroy their makers." |
|
|
|
|
|
#3 |
|
Chop Chop
|
Well, it's the message I put in there if the password and/or username do not match. After the query it says if($row), if that is not true, the message "Information entered did not match those in our database." There is no mysql error.
|
|
|
|
|
|
#4 |
|
Wx geek
Join Date: Aug 2005
Location: Indiana
Posts: 6,638
|
Well it sorta sounds like something was changed during a MYSQL and/or PHP upgrade... I might try to duplicate that database and try connecting to it with a duplicate.
|
|
|
|
|
|
#5 |
|
Member (7 bit)
Join Date: Dec 2005
Posts: 87
|
Try changing all the $result = @mysql_query ($query); to $result = @mysql_query ($query) or die(mysql_error()); This will give you the specific error from the MySQL on what's going wrong.
I bet it is a simple connection problem. Did you change your settings to the new db? |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|