note 38402 added to function.pg-fetch-array

From: Date: Fri, 19 Dec 2003 12:38:43 +0000
Subject: note 38402 added to function.pg-fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-62226@lists.php.net to get a copy of this message
there seems to be a bug in php 4.1.2. <?php while($row = pg_fetch_array($result)) { echo $row[...]; } ?> works allright, but this: <?php while($row = pg_fetch_array($result, NULL, PGSQL_ASSOC)) { echo $row[...]; } ?> keeps on returning the first row again and again in an eternal loop. ---- Manual Page -- http://www.php.net/manual/en/function.pg-fetch-array.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38402 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38402&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38402&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#62226) next »