I am trying to insert a few rows into the MySQL table using Codeigniter and Active Records.
PHP Code
$data = array(\'......\'); //
solution :
$sql = $this->db->set($data)->get_compiled_insert($table); $sql = str_replace('INSERT INTO', 'INSERT IGNORE INTO', $sql); $this->db->query($sql);
works in codeigniter 3.0.6 :)