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.


Messages In This Thread
Wrong title for function description in db active record documentation - by El Forum - 05-11-2012, 02:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB