PROBLEM: I use codeigniter as my PHP framework. I am new to this . Whenever I try to submit my form to post to my database , I keep getting this error : You must use the "set" method to update an entry. The code where it shows error is this ; class Add_book extends CI_Model { public function add_book($data){ $this->db->insert('ST_ITM', $data); } } ?>
asked
5 days ago
Ashty
1.5k points