I\'m looking to write a function that takes an array of pages/categories (from a flat database result) and generates an array of nested page/category items based on the pare
It is possible to use php to get the mysql result into array and then use it.
$categoryArr = Array(); while($categoryRow = mysql_fetch_array($category_query_result)){ $categoryArr[] = array('parentid'=>$categoryRow['parent_id'], 'id'=>$categoryRow['id']); }