table_name='texts'; $list_obj->fields_list=array('id','title','header','text'); $list_obj->additional_query_part='WHERE `id`='.$id; $list_obj->get_list(); if($list_obj->list_len!=0){ $content=$list_obj->list_arr[0]['text']; $header=$list_obj->list_arr[0]['header']; } // articles $list_obj->table_name='articles'; $list_obj->fields_list=array('id','header','pre','text'); $list_obj->additional_query_part=''; $list_obj->get_list(); $pattern=file_get_contents('html/art_list.htm'); $articles=$list_obj->show_all_list($pattern); $content=str_replace('%articles%', $articles, $content); // tyres $list_obj->table_name='art_tyres'; $list_obj->fields_list=array('id','header','text'); $list_obj->additional_query_part=''; $list_obj->get_list(); $pattern=file_get_contents('html/tyres_list.htm'); $tyres=$list_obj->show_all_list($pattern); $content=str_replace('%tyres%', $tyres, $content); include('output.php'); ?>