Search Postgresql Archives

Re: [OT] Postgresql and PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux