![]() |
(11-04-2021, 06:24 AM)manager Wrote: Second variant is right (11-04-2021, 11:10 AM)manager Wrote: I don't understand your code , but what i can say (if i understood you correctly) is when you execute insert, update and delete operations in query builder, by default after it resets all your applied data (for example join, where, orderBy, ignore). Sorry, it probably doesn't help that there's an error in the code. I'm converting this open source application from CI3 to 4. Let me simplify it a little. PHP Code: $builder = $this->db->table('foo_table'); Am I correct that if I wanted to run the $builder->delete() against another table I would just need to place $builder = $this->db->table('bar_table'); after the $builder->get() call and before the $builder->where()? |
Messages In This Thread |
CI4 $this-db->Table() inside foreach or outside - by objecttothis - 11-04-2021, 02:08 AM
RE: CI4 $this-db->Table() inside foreach or outside - by manager - 11-04-2021, 06:24 AM
RE: CI4 $this-db->Table() inside foreach or outside - by objecttothis - 11-04-2021, 06:59 AM
RE: CI4 $this-db->Table() inside foreach or outside - by manager - 11-04-2021, 11:10 AM
RE: CI4 $this-db->Table() inside foreach or outside - by objecttothis - 11-04-2021, 11:31 AM
RE: CI4 $this-db->Table() inside foreach or outside - by manager - 11-04-2021, 10:19 PM
RE: CI4 $this-db->Table() inside foreach or outside - by objecttothis - 11-04-2021, 10:45 PM
RE: CI4 $this-db->Table() inside foreach or outside - by manager - 11-05-2021, 11:56 AM
RE: CI4 $this-db->Table() inside foreach or outside - by includebeer - 11-05-2021, 03:10 PM
RE: CI4 $this-db->Table() inside foreach or outside - by InsiteFX - 11-06-2021, 01:17 AM
|