CodeIgniter
CodeIgniter copied to clipboard
Online Documentation Error
In the online documentation for Active Record, the example for $this->db->insert_batch() says:
$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')
Obviously this should say $this->db->insert_batch('mytable', $data);
Thanks for the heads up. We have a pull request for this here - https://github.com/EllisLab/CodeIgniter/pull/448
I will go ahead and close this as a duplicate.