note 60357 deleted from mysqli-result.num-rows by danbrown

From: Date: Fri, 28 Nov 2008 22:53:11 +0000
Subject: note 60357 deleted from mysqli-result.num-rows by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-147393@lists.php.net to get a copy of this message
Note Submitter: jon at fuck dot org ---- 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.

« previous php.notes (#147393) next »