Welcome Guest, Not a member yet? Register   Sign In
How do I re-use query results?
#6

[eluser]Dam1an[/eluser]
I thought you need the & to do it by reference? (at least thats the case with get_instance())

And I just checked, the function to reset the internal pointer is
Code:
mysql_data_seek($query, 0);

Where $query is the result of mysql_result_assoc, not the CI result, so you'll need to modify the Db class to add that functionality (maybe it could be a feature request for the next version?)


Messages In This Thread
How do I re-use query results? - by El Forum - 05-24-2009, 10:54 AM
How do I re-use query results? - by El Forum - 05-24-2009, 11:06 AM
How do I re-use query results? - by El Forum - 05-24-2009, 11:22 AM
How do I re-use query results? - by El Forum - 05-24-2009, 11:23 AM
How do I re-use query results? - by El Forum - 05-24-2009, 11:26 AM
How do I re-use query results? - by El Forum - 05-24-2009, 11:28 AM
How do I re-use query results? - by El Forum - 05-24-2009, 12:00 PM
How do I re-use query results? - by El Forum - 05-24-2009, 02:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB