im having an erro when i there is a duplicate on id number. i want the code to return just a simple message like the key already exist and echo the existing key,
here is my code.
<?php
try {
$db_options = array(
/* important! use actual prepared statements (default: emulate prepared statements) */
/* throw exceptions on errors (default: stay silent) */
im having an erro when i there is a duplicate on id number
in PHP
Posted
Hi
im having an erro when i there is a duplicate on id number. i want the code to return just a simple message like the key already exist and echo the existing key,
here is my code.