Welcome Guest, Not a member yet? Register   Sign In
Manipulating query results
#2

[eluser]Clooner[/eluser]
Use $board_notes->result_array() and then loop through the array using for or foreach. This all has very good documentation. See Generating Query Results

Update and to convert an array back to object...
You could use something like this
Code:
function array2obj($data)
{
  return is_array($data) ? (object) array_map(__FUNCTION__,$data) : $data;
}
This would be handy in the array helper...


Messages In This Thread
Manipulating query results - by El Forum - 03-05-2008, 11:52 AM
Manipulating query results - by El Forum - 03-05-2008, 11:26 PM
Manipulating query results - by El Forum - 03-06-2008, 08:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB