arabiancoder
arabiancoder
@narfbg, in user-guide https://www.codeigniter.com/user_guide/database/query_builder.html#id12 The example with database.php('dbprefix' => 'prefix_';), then **prefix** will be repeated as mentioned!
@narfbg assume we set ( $db['default']['dbprefix']='ca_'; ) in /application/config/database.php. table [users] columns are ['first_name', 'last_name']. do the following: ``` $sql = $this->db ->select('users.first_name', 'users.last_name') ->get_compiled_select('users', FALSE); $rows = $this->db->get()->result_array(); ```...
@zploskey awesome, now do as in the example `$rows = $this->db->get()->result_array();`
@zploskey I already tried that, it throw an error as mentioned.
Thanks @zploskey Just for the record, I am using CI 3.1.5. considering 'dbprefix' is 'ca_' ! Home controller ```php class Home extends CI_Controller { public function __construct() { parent::__construct(); $this->load->database();...
Thanks @zploskey, in fact, I made it as simple, but with [ ->join() ] then [table_name] is required for column select as SQL goes! And yes, I am beginner and...
How is it working with RTL issue, any update!