[eluser]Pnux[/eluser]
In user_guide/database/active_record.html#insert (scroll a little bit) it shows:
$this->db->insert_batch();
But the code is:
Code:
$data = array(
array(
'title' => 'My title' ,
'name' => 'My Name' ,
'date' => 'My date'
),
array(
'title' => 'Another title' ,
'name' => 'Another Name' ,
'date' => 'Another date'
)
);
$this->db->update_batch('mytable', $data);
// Produces: INSERT INTO mytable (title, name, date) VALUES ('My title', 'My name', 'My date'), ('Another title', 'Another name', 'Another date')
Note the $this->db->
update_batch('mytable', $data);
Im using 2.3 and im not sure if this has been already fixed, hence why im making this thread.