function ShowArticleContent($ptid) { $parent_type = 'pt_articles_be'; $query = "SELECT * FROM $parent_type WHERE parent = $ptid AND active = 1 ORDER by `order`"; $exe_ptf = mysql_query($query) or die (mysql_error()); while($result_ptf = mysql_fetch_array($exe_ptf)) { $be_parent = $result_ptf['id']; $query2 = "SELECT * FROM basic_elements WHERE id = ".$result_ptf['used_basic_element']." LIMIT 1"; $exe_ptf2 = mysql_query($query2) or die (mysql_error()); while($result_ptf2 = mysql_fetch_array($exe_ptf2)) { include ("include/be/".$result_ptf2['page_filename']); } } } ?>