Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Problem with Where In?
#2

[eluser]danmontgomery[/eluser]
Code:
$ids = implode(",", $product);
$this->db->where_in('stock_id', $ids);

Because you're imploding $ids before passing it to where_in, so you're passing it the string "1,2,3". Just remove the call to implode().


Messages In This Thread
[SOLVED] Problem with Where In? - by El Forum - 02-08-2010, 01:33 PM
[SOLVED] Problem with Where In? - by El Forum - 02-08-2010, 02:11 PM
[SOLVED] Problem with Where In? - by El Forum - 02-09-2010, 04:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB