check if record was added successfully using mysqli extention
i have bought the mysqli plugin. i have create a form and insert to database works. In my database i made username unique so no duplicated can be added. how do i show error if duplicate record is found. currently it submits and the database ignores the submit if there is a duplicate? i assume i have to use pdo catch exception?