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

In user_guide/database/active_record.html#insert (scroll a little bit) it shows:


But the code is:

$data = array(
      'title' => 'My title' ,
      'name' => 'My Name' ,
      'date' => 'My date'
      '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.

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


Theme © iAndrew 2016 - Forum software by © MyBB