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

[eluser]daparky[/eluser]
[quote author="noctrum" date="1265681478"]
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().[/quote]

Thank you, i've sorted it. I just used $product for the where_in.


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