Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. public function read()
  2. {
  3. return $this->db->select("
  4. a.*,b.*,c.*,d.*")
  5. ->from("trip AS a")
  6. ->join('fleet_type AS b', 'a.type = b.id')
  7. ->join('trip_route AS c', 'a.route = c.id')
  8. ->join('shedule AS d', 'a.shedule_id = d.shedule_id')
  9. ->limit($limit, $start)
  10. ->get()
  11. ->result();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement