insert_batch not insert data - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: insert_batch not insert data (/showthread.php?tid=72932) |
insert_batch not insert data - ven0m - 03-02-2019 Hi all, I'm new to code igniter but I love it I have issue with insert_batch, when I try to save multiple row the script no save data The array: Code: Array ( [0] => Array ( [company_name] => thename0 ) [1] => Array ( [company_name] => thename1 ) [2] => Array ( [company_name] => thename2 ) [3] => Array ( [company_name] => thename3 ) ) The controller: PHP Code: public function index() The model: PHP Code: public function __construct() I have not error message in the page but data not present in the DB. RE: insert_batch not insert data - neuron - 03-03-2019 Does just insert work? Do you have a Primary Key in your table and if it set to Auto Increment? RE: insert_batch not insert data - php_rocs - 03-04-2019 @ven0m, Have you looked at the log file to see if any errors are there? |