Import Bulk Data Import bulk data using csv, xml and excel file (Addded in v 1.9)

You can import bulk data from csv/xml/excel file directly in database table using the bulk import function. You need to specify the filename and table name only. Your file must have header as the column name of the table.
Please note xml file must have simple column-value... structure. Apart from these, three more functions are added (csvToArray, xmlToArray and excelToArray), that converts csv/xml/excel To Array.

  
                                $pdocrud = new PDOCrud(); 
                                echo "Records Imported: ". $pdocrud->bulkImport("upload/advertisement.csv", "advertisement");
                                echo $pdocrud->dbTable("advertisement")->render();
                                

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

Advertisement

# Ad id Ad title Ad description Ad category Country Featured image1 Featured image2 Actions
No records found
# Ad id Ad title Ad description Ad category Country Featured image1 Featured image2 Actions