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.





--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to