Hey, I've got the solution. It s'thing to do with MySQL 4.1
\MySQL 4.1, PASSWORD(), and Login
Posted by: Larry (IP Logged)
Date: January 20, 2005 11:26AM
In version 4.1 of MySQL, the PASSWORD() function has changed. This can cause problems with scripts in the book, specifically the registration/login examples. There are a couple of solutions:
- Change references to the PASSWORD() function to OLD_PASSWORD().
OR
- Redefine your password columns as being 41 characters long, not 16. Then continue to use the PASSWORD() function. This will only work if you've only used version 4.1 (in other words, passwords encrypted with PASSWORD() in version 4.x or MySQL and earlier won't match up right).
Best Wishes,
Larry
Writer/Web Developer/Instructor
Forum Moderator