note 37088 added to function.pg-num-rows
| From: | aron at lurie dot biz | Date: | Sun, 02 Nov 2003 22:23:40 +0000 |
| Subject: | note 37088 added to function.pg-num-rows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-59661@lists.php.net to get a copy of this message | ||
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";
}
----
Manual Page -- http://www.php.net/manual/en/function.pg-num-rows.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37088
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37088&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37088&report=yes
Search -- http://master.php.net/manage/user-notes.php