| From: | Alessandro Baggi <alessandro(dot)baggi(at)gmail(dot)com> |
|---|---|
| To: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: [OT] Postgresql and PHP |
| Date: | 2016-12-23 15:58:58 |
| Message-ID: | 51641bc9-3a13-9a91-3b10-37bdc5ad03ba@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alessandro Baggi | 2016-12-23 16:03:28 | Re: [OT] Postgresql and PHP |
| Previous Message | Raymond O'Donnell | 2016-12-23 15:52:31 | Re: [OT] Postgresql and PHP |