• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Joining tables with Active Record works fine, but how do I add a WHERE clause into the mix?

#2
[eluser]TheFuzzy0ne[/eluser]
id looks ambiguous to me. I'd imagine you'd need to use something like:
Code:
$this->db->where('jobtypes.id', $this->uri->segment(4));
or
Code:
$this->db->where('categories.id', $this->uri->segment(4));


Messages In This Thread
Joining tables with Active Record works fine, but how do I add a WHERE clause into the mix? - by El Forum - 02-16-2009, 12:38 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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