note 4282 deleted from pg_Fetch_Row by ronabop
| From: | ronabop@php.net | Date: | Sat, 11 Aug 2001 22:08:06 +0000 |
| Subject: | note 4282 deleted from pg_Fetch_Row by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16589@lists.php.net to get a copy of this message | ||
You are almost certainly correct. Here is a common usage. Feel free to copy it. It's actually
non-optimal, since all rows have the same column count, but that's an exercise for the reader.
<pre>
$num = pg_numrows($qh);
for ($i=0; $i<$num; $i++) {
$r = pg_fetch_row($qh, $i);
echo "<tr>n";
for ($j=0; $j<count($r); $j++) {
echo "<td>$r[$j]</td>n";
}
echo "</tr>n";
}
</pre>