note 44173 added to function.mysqli-stmt-close

From: Date: Fri, 16 Jul 2004 16:32:02 +0000
Subject: note 44173 added to function.mysqli-stmt-close
Groups: php.notes 
Request: Send a blank email to php-notes+get-73398@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.mysqli-stmt-close.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44173 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44173&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44173&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#73398) next »