note 60357 added to function.mysqli-num-rows

From: Date: Wed, 04 Jan 2006 18:39:45 +0000
Subject: note 60357 added to function.mysqli-num-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-101213@lists.php.net to get a copy of this message
this is stated in the main mysqli section under constants, but isn't stated here: to get a get a buffered result set, use MYSQLI_STORE_RESULT in your query or call mysqli_store_result() when fetching the result set from a prepared query. this allows you to get the right rowcount every time, since your result set is going to be atomic. don't forget that whether or not you really want to buffer the result set is a different question altogether. ---- Manual Page -- http://www.php.net/manual/en/function.mysqli-num-rows.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60357 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60357&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60357&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60357&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60357&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60357&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60357&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60357&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60357&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#101213) next »