Welcome Guest, Not a member yet? Register   Sign In
This page isn’t working using while loop.
#4

Thanks dear,

Found the mistake, I needed to store the values in an array with in the for loop and then out of the loop return that array.

{
for () {

...
...
...

$result_array[] = $query->result_array(); //$this->db->get()->result()

}
return $result_array;
}
Reply


Messages In This Thread
RE: This page isn’t working using while loop. - by nadeem14375 - 11-24-2017, 01:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB