PDOCrud raw data operation/small>

PDOCrud uses PDOModel for database related operations. It supports all pdomodel functions. You can refer pdomodel documentation here.

  
                            $pdocrud = new PDOCrud();               
                            //insert operation
                            $insertData = array("customer_name" => "bob", "email" => "builder@gmail.com", "postal_code" =>99423);
                            $pdocrud->getPDOModelObj()->insert("customertable", $insertData);
                            //update operation
                            //Example 2
                            $updateData = array("first_name"=>"Jon", "last_name"=>"snow", "email"=>"builder@gmail.com");
                            $pdomodel = $pdocrud->getPDOModelObj();
                            $pdomodel->where("id", 1);
                            $pdomodel->update("feedback", $updateData);

                            //Example 3
                            //select operation
                            $data =  $pdocrud->getPDOModelObj()->select("orders");
                            print_r($data);
                            

Deprecated: Required parameter $field follows optional parameter $op in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrud.php on line 924

Deprecated: Required parameter $task follows optional parameter $op in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrud.php on line 924

Deprecated: Required parameter $totalrecords follows optional parameter $page in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrudHelper.php on line 191

Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOModel.php:863 Stack trace: #0 /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOModel.php(863): implode() #1 /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOModel.php(240): PDOModel->getInsertQuery() #2 /home/javad/domains/javadfk.ir/public_html/pdocrud/demo/pages/raw-data-operations.php(49): PDOModel->insert() #3 {main} thrown in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOModel.php on line 863