

$_page['children'] = array(); $child_query = mysql_query("SELECT pages.* FROM urls LEFT JOIN pages ON pages.url_id = urls.id WHERE parent_id = '".$_page['url_id']."' AND hidden = 0"); while($row = mysql_fetch_assoc($child_query)){ $row['uploads'] = uploads($row['id']); if(count(childPages($row['url_id']))){ $_page['children'][] = $row; } } ?>
Stay up to date on all of our latest specials by subscribing to our newsletter! Receive 25% off your first order just for subscribing!