Round brackets issue in Codeigniter |
Hello
To remove the round brackets around the table name in your CodeIgniter query, modify your code by removing the get() method inside the where() method and adding the table name directly in the get() method. Here's the modified code: php Copy code $this->db->_protect_identifiers = false; $this->db->select('*')->from('tb_card', false); $this->db->where('company_id', $this->company_id, false); $this->db->get('tb_card')->row_array(); This will generate the query without the round brackets around the table name. Thank you. |
Messages In This Thread |
Round brackets issue in Codeigniter - by kalyanbl - 03-10-2018, 03:40 AM
RE: Round brackets issue in Codeigniter - by InsiteFX - 03-10-2018, 07:38 AM
RE: Round brackets issue in Codeigniter - by jamesmillere - 01-19-2023, 12:00 AM
RE: Round brackets issue in Codeigniter - by gregbowers - 07-18-2023, 12:10 AM
|