php3-list | 199807
Date: 07/23/98
- Next message: Christopher Curtis: "Re: [PHP3] [PHP] PHP and object-orientation"
- Previous message: Christopher Curtis: "Re: [PHP3] [PHP] PHP and object-orientation"
- Next in thread: Brian Schaffner: "RE: [PHP3] Postgres Query"
- Maybe reply: Brian Schaffner: "RE: [PHP3] Postgres Query"
- Reply: Dirk Elmendorf: "RE: [PHP3] Postgres Query"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Martin Schapendonk wrote:
> On Wed, 22 Jul 1998, Anil Amarakoon wrote:
> # I have postgresql query that returns single row all the time. The
field
> # values might have all null values -no matching results or single
row.
> #
> # Is there any way to test that the $result has null values or not
without
> # reading the field values in the results?
>
> $count=pg_NumRows($result);
>
> See the docs, this isn't hard to find.
>
> Martin
I tried that, I get same value with null row and with row with data.
Then I tried
like
if(pg_Result($result,$i,"cid")<1000)
{ this part works fine }
else
{ this part works also with following error msg }
If I get null row, I get following msg :
Warning: Unable to jump to row 0 on PostgresSQL result index 2 in
/www/htdocs/ypages/addme.phtml
on line 31. I guess error msg is right - . I am trying test something in
a null
row.
Tks
Anil
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
- Next message: Christopher Curtis: "Re: [PHP3] [PHP] PHP and object-orientation"
- Previous message: Christopher Curtis: "Re: [PHP3] [PHP] PHP and object-orientation"
- Next in thread: Brian Schaffner: "RE: [PHP3] Postgres Query"
- Maybe reply: Brian Schaffner: "RE: [PHP3] Postgres Query"
- Reply: Dirk Elmendorf: "RE: [PHP3] Postgres Query"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

