Welcome Guest, Not a member yet? Register   Sign In
Commands out of sync; you can't run this command now
#6

(This post was last modified: 12-31-2015, 11:11 AM by mwhitney. Edit Reason: semi-colon was converted into a smiley )

The first thing to try is to take the semi-colon ( ; ) out of the query:

PHP Code:
$auth $this->db->query("CALL sp_authenticate('{$username}')"); 

If that change does not fix the issue or change the error you're receiving, then you may also need to free the result before modifying the session. This should be as simple as calling $auth->free_result() before returning from authenticate_user(), but you'll have to make sure you've retrieved any data you need from the result before doing so.
Reply


Messages In This Thread
RE: Commands out of sync; you can't run this command now - by mwhitney - 12-31-2015, 11:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB