100 and functionid <200 ORDER BY sorting ASC,posting asc, `functionid` ASC";
$rss1 = $db->query($sqls1);
while($rows1 = $db->fetch_array($rss1)) {
$en_status=$rows1["en_status"];
$tc_status=$rows1["tc_status"];
$sc_status=$rows1["sc_status"];
if ( $rows1["functionid"]==101 && ($en_status==1 ) ) $mess101 = $rows1["{$_SESSION['lang']}_show"];
if ( ($rows1["functionid"]==102) && ($en_status==1 ) ) $mess102a = $rows1["en_show"];
if ( ($rows1["functionid"]==102) && ($tc_status==1 ) ) $mess102b = $rows1["tc_show"];
if ( ($rows1["functionid"]==102) && ($sc_status==1 ) ) $mess102c = $rows1["sc_show"];
if ( ($rows1["functionid"]==102) && ($rows1["{$_SESSION['lang']}_status"]==1 ) ) $htmlstyle = $rows1["framestyle"];
if ( ($rows1["functionid"]==102) && ($rows1["{$_SESSION['lang']}_status"]==1 ) ) $html1 = $rows1["framehtml1"];
if ( ($rows1["functionid"]==102) && ($rows1["{$_SESSION['lang']}_status"]==1 ) ) $html2 = $rows1["framehtml2"];
if ( ($rows1["functionid"]==102) && ($rows1["{$_SESSION['lang']}_status"]==1 ) ) $html3 = $rows1["framehtml3"];
if ( ($rows1["functionid"]==102) && ($rows1["{$_SESSION['lang']}_status"]==1 ) ) $html4 = $rows1["framehtml4"];
}
?>