[eluser]theprodigy[/eluser]
in your controller after you call your save function, run:
Code:
echo $this->db->last_query();
This will output the last query that was ran. This will tell you whether or not your model is running the update or insert query. That will give you an good indication whether you should be looking for new records or possibly a change in a record.
So, your controller should now look like:
Code:
$item = $this->input->post("item");
$rows = $this->input->post("row0");
$data['item'] = $this->Reports->save($fields,$item,$rows);
//Insert it here
echo $this->db->last_query();
$c .= 'Successfully saved item';