note 47406 deleted from function.pg-fetch-row by irchtml

From: Date: Sun, 09 Jan 2005 16:41:42 +0000
Subject: note 47406 deleted from function.pg-fetch-row by irchtml
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-82996@lists.php.net to get a copy of this message
Note Submitter: Kestrell ---- I found that in the official example the code: while ($row = pg_fetch_row($result, $i)) { for ($j=0; $j < count($row); $j++) { echo $row[$j] . "&nbsp;"; } didn't work. I had to do: for ($i=0; $i < pg_num_rows($result); $i++) { $row = pg_fetch_row($result); for ($j=0; $j < count($row); $j++) { echo $row[$j] . "&nbsp;"; } }

« previous php.notes (#82996) next »