• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.