Duke 1 Posted October 14, 2014 Report Share Posted October 14, 2014 I just wanted to put this out there in case it helps anyone ... (I am using PHP 5.5) For the login.inc.php script on Page 99 , step 9 In the book the row is:if ($row['expired'] === 1) $_SESSION['user_not_expired'] = true; The above line was not working for me so I used this:if ($row['expired'] === '1') $_SESSION['user_not_expired'] = true;...( I added single quotes around 1)This will also will work work:if ($row['expired'] ==1) $_SESSION['user_not_expired'] = true;...(use double ==) Thank you David Quote Link to post Share on other sites
Larry 429 Posted October 15, 2014 Report Share Posted October 15, 2014 Thanks for sharing that, David. Will double-check what I did just to be safe. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.