Posgresql error captureing without warnings

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
srajakaruna
Forum Newbie
Posts: 1
Joined: Thu Nov 20, 2008 10:34 pm

Posgresql error captureing without warnings

Post by srajakaruna »

Code: Select all

$res = pg_query($sql)
I want to capture the error above core returns without aborting the program. How should I capture it using try catch or setting the error_reporting. Please help
Post Reply