note 44173 deleted from function.mysqli-stmt-close by tomsommer
| From: | tomsommer@php.net | Date: | Fri, 16 Jul 2004 16:32:56 +0000 |
| Subject: | note 44173 deleted from function.mysqli-stmt-close by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-73399@lists.php.net to get a copy of this message | ||
Note Submitter: jgrill@houston.rr.com
----
If you get errors like "Commands out of sync; You can't run this command now" from
MySQL when a query that worked before fails in a seemingly non-related area in your code look for
statements that you forgot to close.
<?php $stmt->close(); ?>
Does not appear to be optional like the older mysql_free_result() was. If you were lazy (like me :)
with ext/mysql and are not used to calling free_result and the like you will have some minor
adjusting to do when using ext/mysqli.