note 28485 deleted from function.pg-num-rows by felipe
| From: | felipe@php.net | Date: | Sat, 15 Dec 2007 15:11:54 +0000 |
| Subject: | note 28485 deleted from function.pg-num-rows by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133549@lists.php.net to get a copy of this message | ||
Note Submitter: flavio AT catalani.net
----
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 ;)