note 95076 added to mysqli-result.fetch-row

From: Date: Sat, 12 Dec 2009 06:32:13 +0000
Subject: note 95076 added to mysqli-result.fetch-row
Groups: php.notes 
Request: Send a blank email to php-notes+get-163875@lists.php.net to get a copy of this message
Regarding what Stephen said below: I've also encountered the problem, but strangely the LIMIT/OFFSET clause seems to fix it. Example: <?php $result1 = $mysqli->query("SELECT * FROM news"); var_dump($result1->fetch_row()); $result2 = $mysqli->query("SELECT * FROM news LIMIT 20 OFFSET 0"); var_dump($result2->fetch_row()); ?> Output is like: array(3) { [0]=> int(1) [1]=> string(8) "Example!" [2]=> int(8) } array(3) { [0]=> string(8) "00000001" [1]=> string(8) "Example!" [2]=> string(8) "00000008" } ---- Server IP: 64.71.164.2 Probable Submitter: 166.111.46.191 (proxied: 59.66.130.239) ---- Manual Page -- http://www.php.net/manual/en/mysqli-result.fetch-row.php Edit -- https://master.php.net/note/edit/95076 Del: integrated -- https://master.php.net/note/delete/95076/integrated Del: useless -- https://master.php.net/note/delete/95076/useless Del: bad code -- https://master.php.net/note/delete/95076/bad+code Del: spam -- https://master.php.net/note/delete/95076/spam Del: non-english -- https://master.php.net/note/delete/95076/non-english Del: in docs -- https://master.php.net/note/delete/95076/in+docs Del: other reasons-- https://master.php.net/note/delete/95076 Reject -- https://master.php.net/note/reject/95076 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#163875) next »