No tables used |
-
dirty12
Newbie
-
Posts: 1
Threads: 1
Joined: Jan 2021
Reputation:
0
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
|