Welcome Guest, Not a member yet? Register   Sign In
No tables used
#1

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
Reply
#2

(01-19-2021, 08:23 PM)dirty12 Wrote: I want to update a database, but I get an error message 
SELECT * WHERE 0 = 'Small' LIMIT 1

SELECT != UPDATE
Reply




Theme © iAndrew 2016 - Forum software by © MyBB