Re: [GENERAL] [OT] Postgresql and PHP - Mailing list pgsql-general

From Alessandro Baggi
Subject Re: [GENERAL] [OT] Postgresql and PHP
Date
Msg-id 51641bc9-3a13-9a91-3b10-37bdc5ad03ba@gmail.com
Whole thread Raw
In response to Re: [GENERAL] [OT] Postgresql and PHP  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
Hi Adrian,

>
> And what is the count?
>

Reported is 1

>
> How do you know it fails?
>

Really I don't know if it fails but

$query = pg_query_params(....);
if(!$query)
{
    echo pg_last_error($dbcon);
    echo "ERROR";
} else {
    $row = pg_fetch_assoc($query);
    if(!$row)
    {
        echo "some error";
    }

}

does not help to check if there are errors?

With this code I block in the first statement with "ERROR" string
printed and not real error. I've also tried to see if pg_last_error()
works with query keywords errors  (Select * from nonexisttable) and works.





pgsql-general by date:

Previous
From: Raymond O'Donnell
Date:
Subject: Re: [GENERAL] [OT] Postgresql and PHP
Next
From: Alessandro Baggi
Date:
Subject: Re: [GENERAL] [OT] Postgresql and PHP