• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.