Welcome Guest, Not a member yet? Register   Sign In
Muliple table joining with conditional statements
#4

[eluser]Unknown[/eluser]
$query = $this->db->select('album.*, image.*')
->from('td_album, td_image')
->join('td_image', 'td_image.album_id =td_ album.id', 'left')
->group_by('album.id');

$query = $this->db->get();
return $query->result();


Messages In This Thread
Muliple table joining with conditional statements - by El Forum - 02-08-2013, 08:31 PM
Muliple table joining with conditional statements - by El Forum - 02-08-2013, 09:43 PM
Muliple table joining with conditional statements - by El Forum - 02-08-2013, 11:25 PM
Muliple table joining with conditional statements - by El Forum - 02-13-2013, 11:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB