Joining two seperate tables |
[eluser]JayArias[/eluser]
sure, Code: $this->db->join('members', 'member_profile.user_id = usr.id'); will basically join "members" with "member_profile" where `id` = `$id` which will pull information on that member from the user tables and the profile tables corresponding to that member's id.
[eluser]mk3[/eluser]
active record class more info here Active record in user manual.
|
Welcome Guest, Not a member yet? Register Sign In |