How to execute my SQL query in CodeIgniter

后端 未结 6 1224
执笔经年
执笔经年 2020-11-29 05:42

I have a problem with my query and I need to join two tables from different databases now my problem is how can I execute my query. I got my syntax format f

6条回答
  •  执笔经年
    2020-11-29 05:51

    http://www.bsourcecode.com/codeigniter/codeigniter-select-query/

    $query = $this->db->query("select * from tbl_user");
    

    OR

    $query = $this->db->select("*");
                $this->db->from('table_name');
                $query=$this->db->get();
    

提交回复
热议问题