Welcome Guest, Not a member yet? Register   Sign In
Resetting query object?
#1

[eluser]dandys997[/eluser]
Hi,
I retrieve data using the Active Record, something like:

Code:
$query=$this->db->get("user");

and then use it in the foreach loop:
Code:
foreach($query->result() as $row) echo $row->name;

But when the loop is finished, I need to use query object again. What should I do to "reset" this object? Thanks in advance for help!


Messages In This Thread
Resetting query object? - by El Forum - 12-10-2011, 05:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB