Welcome Guest, Not a member yet? Register   Sign In
Using join
#2

[eluser]Xeoncross[/eluser]
I haven't tried it - but just use several joins.

Code:
$this->db->join('consultants', 'consultants.id = consultants_events.consultant_id');
$this->db->join('events', 'events.id = consultants_events.event_id');
$this->db->join('locations', 'locations.id = events.location_id');

//Fetch
$this->db->get('consultants_events');


Messages In This Thread
Using join - by El Forum - 11-10-2008, 10:00 AM
Using join - by El Forum - 11-10-2008, 12:17 PM
Using join - by El Forum - 11-10-2008, 02:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB