p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 (http://p2p.wrox.com/forumdisplay.php?f=160)
-   -   chapter 12/register/user_login (http://p2p.wrox.com/showthread.php?t=67153)

airtime373 April 4th, 2008 02:08 PM

chapter 12/register/user_login
 
I can't register a new user, I have gone over everything and even downloaded the code from this site for register, it is different form the book but I still get a message after registering that says "Data too long for column 'password' at row 1" can anyone lead me in the right direction, also i can't login, it just keeps sending me back to the login page? does it have anything to do with sessions in my php.ini, do I need to setup something in there? my book tells me it is better to use sessions instead of cookies, someone please help

airtime373 April 7th, 2008 08:14 PM

Ok I solved my own problem, I change the char length in my database for field password to 20, not knowing that the passwords saved in that field would be encripted, so the length would very, I changed it to 255 and now everything works just fine.

I also solved my login problem, I was still using the login.php which had the username and password hard coded, after I made the user_login.php it solved my problem. I was just working faster than I was reading. I hope my problems may have helped someone else answer theirs


All times are GMT -4. The time now is 02:02 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.