Commands out of sync; you can't run this command now |
12-31-2015, 11:11 AM
(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. |
Messages In This Thread |
Commands out of sync; you can't run this command now - by mike7418 - 12-27-2015, 06:11 PM
RE: Commands out of sync; you can't run this command now - by mike7418 - 12-29-2015, 06:11 AM
RE: Commands out of sync; you can't run this command now - by mike7418 - 12-29-2015, 04:53 PM
RE: Commands out of sync; you can't run this command now - by mwhitney - 12-30-2015, 08:47 AM
RE: Commands out of sync; you can't run this command now - by mike7418 - 12-31-2015, 05:32 AM
RE: Commands out of sync; you can't run this command now - by mwhitney - 12-31-2015, 11:11 AM
RE: Commands out of sync; you can't run this command now - by mike7418 - 12-31-2015, 04:24 PM
RE: Commands out of sync; you can't run this command now - by mike7418 - 12-31-2015, 11:59 PM
RE: Commands out of sync; you can't run this command now - by skunkbad - 12-31-2015, 05:49 PM
RE: Commands out of sync; you can't run this command now - by skunkbad - 01-01-2016, 09:34 AM
|