Welcome Guest, Not a member yet? Register   Sign In
Joins as array
#5

[eluser]Atharva[/eluser]
Code:
$joins = array(
                   array('contact', 'contact.id = person.id', 'left'),
                   array('info', 'info.id = person.id','left')
                             );

                foreach($joins as $join){
                   $this->db->join($join[0], $join[1], $join[2]);
                    
                }

Is this what you are looking for?


Messages In This Thread
Joins as array - by El Forum - 01-04-2011, 01:12 AM
Joins as array - by El Forum - 01-04-2011, 01:16 AM
Joins as array - by El Forum - 01-04-2011, 02:03 AM
Joins as array - by El Forum - 01-04-2011, 02:16 AM
Joins as array - by El Forum - 01-04-2011, 02:23 AM
Joins as array - by El Forum - 01-04-2011, 03:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB