Welcome Guest, Not a member yet? Register   Sign In
Round brackets issue in Codeigniter
#4

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.
Reply


Messages In This Thread
Round brackets issue in Codeigniter - by kalyanbl - 03-10-2018, 03:40 AM
RE: Round brackets issue in Codeigniter - by gregbowers - 07-18-2023, 12:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB