Welcome Guest, Not a member yet? Register   Sign In
multiple query results in a loop to be passed in a view
#5

[eluser]CroNiX[/eluser]
In your loop, instead of performing a new query, just store the IDs in an array. Then use where_in('key', $id_array) in a single query.


Messages In This Thread
multiple query results in a loop to be passed in a view - by El Forum - 08-21-2012, 06:52 AM
multiple query results in a loop to be passed in a view - by El Forum - 08-21-2012, 07:21 AM
multiple query results in a loop to be passed in a view - by El Forum - 08-21-2012, 03:53 PM
multiple query results in a loop to be passed in a view - by El Forum - 08-23-2012, 05:18 PM
multiple query results in a loop to be passed in a view - by El Forum - 08-23-2012, 05:30 PM
multiple query results in a loop to be passed in a view - by El Forum - 08-23-2012, 05:54 PM
multiple query results in a loop to be passed in a view - by El Forum - 08-23-2012, 06:02 PM
multiple query results in a loop to be passed in a view - by El Forum - 08-23-2012, 06:55 PM
multiple query results in a loop to be passed in a view - by El Forum - 08-23-2012, 07:39 PM
multiple query results in a loop to be passed in a view - by El Forum - 08-24-2012, 07:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB