note 28485 added to function.pg-num-rows
| From: | flavio at rack1 dot php dot net | Date: | Tue, 14 Jan 2003 16:39:36 +0000 |
| Subject: | note 28485 added to function.pg-num-rows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42135@lists.php.net to get a copy of this message | ||
simple pg_num_fields & pg_num_rows example.
$result = pg_query($conn, $string);
while($arr = pg_fetch_array ($result)) {
for ($x=0;$x<=pg_num_fields($result);$x++)
print $arr[$x] . " ";
print "\n";
}
adapted (stolen) from php manual ;)
--
http://www.php.net/manual/en/function.pg-num-rows.php
http://master.php.net/manage/user-notes.php?action=edit+28485
http://master.php.net/manage/user-notes.php?action=delete+28485
http://master.php.net/manage/user-notes.php?action=reject+28485