Welcome Guest, Not a member yet? Register   Sign In
Cross Join
#5

You are absolutely right.

I forgot the condition. Now it works right.

Code:
function immChild() {
   
   $this->db->select('c.id, c.name, b.id, b.fname, b.lname, a.id, a.child, a.immune, a.immun_date');
$this->db->join('immun_master as c', 'c.id = a.immune','true');
$this->db->join('children as b', 'a.child = b.id', 'true');
$query = $this->db->get('immun as a')->result();
       
return $query;
}
Reply


Messages In This Thread
Cross Join - by juggernautsei - 02-25-2015, 10:54 AM
RE: Cross Join - by Rufnex - 02-25-2015, 11:14 AM
RE: Cross Join - by edellascenza - 02-25-2015, 11:23 AM
RE: Cross Join - by aurelien - 02-25-2015, 11:27 AM
RE: Cross Join - by juggernautsei - 02-25-2015, 12:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB