CodeIgniter Forums
Wrong title for function description in db active record documentation - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Wrong title for function description in db active record documentation (/showthread.php?tid=51647)



Wrong title for function description in db active record documentation - El Forum - 05-11-2012

[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.


Wrong title for function description in db active record documentation - El Forum - 05-11-2012

[eluser]InsiteFX[/eluser]
If you have things that are incorrect or wrong with CodeIgniter you
to let them know on GitHub not here!

Issues