note 37088 deleted from function.pg-num-rows by felipe
| From: | felipe@php.net | Date: | Sat, 15 Dec 2007 15:11:46 +0000 |
| Subject: | note 37088 deleted from function.pg-num-rows by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133548@lists.php.net to get a copy of this message | ||
Note Submitter: aron at lurie dot biz
----
Simple example
$sql = "select * from YOURTABLE";
$result = pg_query($sql);
$rows = pg_num_rows($result);
for ($i = 0; $i < $rows; $i++)
{
$data = pg_fetch_object($result, $i);
echo "$data->COLUMNNAME";
}