Welcome Guest, Not a member yet? Register   Sign In
where_not_in (Solved)
#7

[eluser]jedd[/eluser]
Agreed about the benefits of consistency.

Looks like you've got two approaches then - either modify your selection criteria, removing the items already subscribed to - and you can do that either by running a select query first, and massaging the output into something you can plug into the query, or do an encapsulated (SELECT...) within the one query, and put the resultant data in a 'NOT IN (...)' construct.

Second option is to try to process your array of objects into an array of serialise()'d objects, and then do the array_diff(), and see what happens. CI objects contain lots of surprises (try doing a var_dump of one from each of your arrays you're playing with now, say, and seeing if there's something obvious and fixable).


Messages In This Thread
where_not_in (Solved) - by El Forum - 08-17-2009, 06:02 AM
where_not_in (Solved) - by El Forum - 08-17-2009, 06:08 AM
where_not_in (Solved) - by El Forum - 08-17-2009, 06:10 AM
where_not_in (Solved) - by El Forum - 08-17-2009, 06:38 AM
where_not_in (Solved) - by El Forum - 08-17-2009, 07:34 AM
where_not_in (Solved) - by El Forum - 08-17-2009, 08:08 AM
where_not_in (Solved) - by El Forum - 08-17-2009, 08:35 AM
where_not_in (Solved) - by El Forum - 08-20-2009, 06:26 AM
where_not_in (Solved) - by El Forum - 08-21-2009, 02:16 AM
where_not_in (Solved) - by El Forum - 08-21-2009, 03:04 AM
where_not_in (Solved) - by El Forum - 08-21-2009, 05:04 AM
where_not_in (Solved) - by El Forum - 08-21-2009, 05:08 AM
where_not_in (Solved) - by El Forum - 08-21-2009, 05:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB