Welcome Guest, Not a member yet? Register   Sign In
confusion with where query and arrays
#2

[eluser]mddd[/eluser]
If you do multiple where() or where_in() statements they are always 'and'.
Code:
$this->where('id', 1);
$this->where('active', 1);
// this gives:
WHERE `id`=1 AND `active`=1
Same thing for where_in.


Messages In This Thread
confusion with where query and arrays - by El Forum - 08-25-2010, 07:32 AM
confusion with where query and arrays - by El Forum - 08-25-2010, 08:02 AM
confusion with where query and arrays - by El Forum - 08-25-2010, 09:46 AM
confusion with where query and arrays - by El Forum - 08-25-2010, 09:53 AM
confusion with where query and arrays - by El Forum - 08-25-2010, 10:00 AM
confusion with where query and arrays - by El Forum - 08-25-2010, 10:27 AM
confusion with where query and arrays - by El Forum - 08-25-2010, 10:33 AM
confusion with where query and arrays - by El Forum - 08-25-2010, 10:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB