fetch multiple table data in codeigniter

Shop Forums Codeigniter Discussion fetch multiple table data in codeigniter

Viewing 0 reply threads
  • Author
    Posts
    • #7168
      Projects Plaza
      Participant

      Here i will going to show you how we can fetch multiple table data with join in codeigniter

      
      function get_multiple_table_data(){
       $this->db->select('*');
       $this->db->from('table_1');
       $this->db->join('table_2','table_2.col=table_1.col');
       $query=$this->db->get();
       return $query->result_array();
      }
      
Viewing 0 reply threads
  • You must be logged in to reply to this topic.