Welcome Guest, Not a member yet? Register   Sign In
join problem
#8

[eluser]Josepzin[/eluser]
Thnaks aquary!!!! Smile

It works, your two options are good!

#1 JOIN + WHERE
Code:
$this->db->where('catalogs_arranges.key', 'nexts');
$this->db->join('catalogs_arranges', 'catalogs_arranges.table_id=catalogs.id', 'LEFT');

#2 ONLY JOIN
Code:
$this->db->join('catalogs_arranges', 'catalogs_arranges.table_id=catalogs.id AND catalogs_arranges.key="nexts"', 'LEFT');


Messages In This Thread
join problem - by El Forum - 07-15-2008, 11:20 AM
join problem - by El Forum - 03-06-2012, 11:28 AM
join problem - by El Forum - 03-06-2012, 01:15 PM
join problem - by El Forum - 03-06-2012, 03:21 PM
join problem - by El Forum - 03-06-2012, 03:37 PM
join problem - by El Forum - 03-06-2012, 03:51 PM
join problem - by El Forum - 03-07-2012, 01:49 AM
join problem - by El Forum - 03-07-2012, 10:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB