Join Query in Codeigniter

This tutorial will help you to learn join query using php codeigniter. Table joins are essential part in application development while displaying the records from multiple tables.

Let’s create a join method in codeigniter

$this->db->join('tbl_user', ' = tbl_order.user_id');
$query = $this->db->get();
return $query->result();

Leave a Reply

Your email address will not be published. Required fields are marked *