Hello people, i just want to ask for help, i have been trying to input in php and connect to database, however, if i input wrongly,,there is an output like this:

Warning: pg_query() [function.pg-query]: Query failed: ERROR: duplicate key value violates unique constraint "requisitioner_pkey" in D:\xampp\htdocs\myPHPFiles(LESLIE)\INVENTORY_pogayGroup ( CODE )\addCustomer2.php on line 43
ERROR in adding customer

What will i do?. so that there is no warning message that will output, and only the "Error in adding customer" will only be the output. ?

Well it looks like you're trying to input duplicate records. The fix is to not do that and to turn error_reporting off in a live environment

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.