Answer the question
In order to leave comments, you need to log in
How to catch database errors in PHP?
I use: PHP/CodeIgniter, PostgreSQL.
An error occurs in one of the INSERT queries:
A PHP Error was encountered
Severity: Warning
Message: pg_query(): Query failed: ERROR: Duplicate key value violates unique constraint "users_uk"
DETAIL: Key "(login)=(tester)" already exists.
Filename: postgre/postgre_driver.php
Line Number: 242
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question