Welcome Guest, Not a member yet? Register   Sign In
Wrong title for function description in db active record documentation
#1

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

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

Issues




Theme © iAndrew 2016 - Forum software by © MyBB