Check duplicate records Check for duplicate records before inserting data (Added in v 3.3)

If you want to check whether record with same value exists or not before inserting data, you can call checkDuplicateRecord() function to achieve it. It accepts array of fields that needs to be checked for duplicate record. For example, you can pass username and email in this function to check for duplicate record. It will return record already exists message if there is already field with same value exist.
Before this version, you can also do this functionality using the callback function.

                                $pdocrud = new PDOCrud(); 
                                //Check for duplicate record. You can pass multiple fields also.
                                echo $pdocrud->dbTable("student")->render("insertform");