![]() |
Using count_all_results or get_compiled_select with $this->db->get() - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11) +--- Thread: Using count_all_results or get_compiled_select with $this->db->get() (/showthread.php?tid=81597) |
Using count_all_results or get_compiled_select with $this->db->get() - xanabobana - 03-23-2022 How do I use get_compiled_select or count_all_results before running the query without getting the table name added twice? When I use $this->db->get('tblProgram') after either of those, I get the error:
Code: Not unique table/alias: 'tblProgram' Code: [align=left][code] [/code] RE: Using count_all_results or get_compiled_select with $this->db->get() - ignitedcms - 03-29-2022 If you have two duplicate column names in two or more different tables and you're doing a 'join' you have to specify an alias I believe. |