include("include/connect.php"); $qry_page_select = "SELECT id,pagetitle FROM content WHERE status='1' order by sort asc"; $query_listpage = mysql_query($qry_page_select) or die(mysql_error()); $total_record = mysql_num_rows($query_listpage); ?>