Welcome Guest, Not a member yet? Register   Sign In
How to get data from 2 related tables in the same controller?
#2

Use JOIN to get the result from both tables at once.
The CI documentation explains it very well.
If you prefer the query builder, look for $this->db->join() AND $this->db->order_by().
Once you get all the data in an array, you can fill the accordion in your view with it.
Reply


Messages In This Thread
RE: How to get data from 2 related tables in the same controller? - by Wouter60 - 07-09-2019, 11:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB