No tables used - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: No tables used (/showthread.php?tid=78438) |
No tables used - dirty12 - 01-19-2021 I need your help I want to update a database, but I get an error message Error Number: 1096 No tables used SELECT * WHERE 0 = 'Small' LIMIT 1 Filename: C:/xampp/htdocs/billing/system/database/DB_driver.php Line Number: 691 and this is the query syntax in the model public function edit($data) { $this->db->where('id_type', $data['id_type']); $this->db->update('type', $data); } but in different models using such a syntax does not get an error message RE: No tables used - iRedds - 01-20-2021 (01-19-2021, 08:23 PM)dirty12 Wrote: I want to update a database, but I get an error message SELECT != UPDATE |