Records_list( array('page_name','%') ); $pages->data = aasort($pages->data,'page_sort'); $page_id = $pages->data[$page_active]['page_id']; $page_content = new Records('pages', array('page_id','page_name','page_content')); $page_content->Records_list( array('page_id',$page_id) ); $content = stripslashes($page_content->data[$page_id]['page_content']); /* $images = new Records('images', array('id','src','format')); $images->Records_list( array('id','%') ); $pages_images = new Records('pages_images', array('id','page_id','image_id')); $pages_images->Records_list( array('page_id',$page_id), false ); */ function aasort($x,$var,$cmp='strcasecmp'){ if ( is_string($var) ) $var = "'$var'"; uasort($x, create_function('$a,$b', 'return '.$cmp.'( $a['.$var.'],$b['.$var.']);') ); return $x; } ?> Source Quest Consulting

 

All Content Copyright © 2001-2006, Source Quest Consulting, All Rights Reserved.