dragonfly24 Posted August 4, 2015 Share Posted August 4, 2015 We have used the login script from chapter 18 successfully numerous times however we are now having an issue with a server that is running php 5.3.3. It seems to be skipping over this section: if ($e && $p) { // If everything's OK. We just get a "Please try again" error. Link to comment Share on other sites More sharing options...
dragonfly24 Posted August 4, 2015 Author Share Posted August 4, 2015 It seems to be losing the variables and when we echo the query the username and password fields are empty. In addition, we are getting the following error:Undefined variable: dbc in login.php on line 90 Warning: mysqli_close() expects parameter 1 to be resource, null given in /login_content.php on line 90 Link to comment Share on other sites More sharing options...
dragonfly24 Posted August 5, 2015 Author Share Posted August 5, 2015 Can anything help with us?? We have around 40 sites using this code and need to get this resolved. Thanks Link to comment Share on other sites More sharing options...
Larry Posted August 5, 2015 Share Posted August 5, 2015 First of all, please try to be patient. I understand this isn't working for you and that's stressful, but this forum relies upon free help from strangers, so it may take a day or two or three or... to get an answer. I personally check the forums 3 times per week, which I'm still doing this week, even though I'm on vacation. As for your problem, it sounds like you have a database issue. That's what this error indicates: Warning: mysqli_close() expects parameter 1 to be resource, null given in /login_content.php on line 90 You should apply the standard PHP-MySQL debugging techniques to figure out what query is failing and why. Link to comment Share on other sites More sharing options...
Recommended Posts