note 110452 added to mysqli-result.num-rows

From: Date: Tue, 23 Oct 2012 16:24:13 +0000
Subject: note 110452 added to mysqli-result.num-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-191505@lists.php.net to get a copy of this message
The reason for mysqli_num_rows() not returning the total number of results but the number of traversed results is because you are using unbuffered result sets. This is explained... "The behaviour of mysqli_num_rows() depends on whether buffered or unbuffered result sets are being used. For unbuffered result sets, mysqli_num_rows() will not return the correct number of rows until all the rows in the result have been retrieved." ---- Server IP: 69.147.83.199 Probable Submitter: 80.203.240.197 ---- Manual Page -- http://www.php.net/manual/en/mysqli-result.num-rows.php Edit -- https://master.php.net/note/edit/110452 Del: integrated -- https://master.php.net/note/delete/110452/integrated Del: useless -- https://master.php.net/note/delete/110452/useless Del: bad code -- https://master.php.net/note/delete/110452/bad+code Del: spam -- https://master.php.net/note/delete/110452/spam Del: non-english -- https://master.php.net/note/delete/110452/non-english Del: in docs -- https://master.php.net/note/delete/110452/in+docs Del: other reasons-- https://master.php.net/note/delete/110452 Reject -- https://master.php.net/note/reject/110452 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191505) next »