Welcome Guest, Not a member yet? Register   Sign In
Numerically Indexed Result Arrays?!?
#2

[eluser]InsiteFX[/eluser]
Code:
$res = $this->db->getwhere(‘contacts’,array(‘id’=>$id));

foreach ($res->result() as $row)
{
    echo $row->id;
    // etc for other fields in the table
}

You should be using a model and return an array to your controller
then you can set the $data and pass it to your view!

If you show more of your code we can help you better.

InsiteFX


Messages In This Thread
Numerically Indexed Result Arrays?!? - by El Forum - 11-28-2010, 01:43 AM
Numerically Indexed Result Arrays?!? - by El Forum - 11-28-2010, 01:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB