include("inc/default.inc.php"); $cid = $_GET["cid"]; if($cid==""){ $cid=7; } /*$query1 = $db->query("select * from xx_news_lang where lang='fr' or lang = 'all'"); $r1 = $db->fetch_array($query1); $mid = $r1["newsid"];*/ $lang3 = substr($tablepre,0,2); $row4 = mysql_query("select * from xx_news_lang where lang='$lang3' or lang = 'all'"); $row2= array(); while ($row = mysql_fetch_assoc($row4)){ $row2[]=$row; } foreach ($row2 as $row1) { $mid = $row1["newsid"]; } $query = $db->query("select * from ".$tablepre."news_category where cid='$cid'"); $r = $db->fetch_array($query); $title = $r["cname"]; rtntitle($r["title"]); rtndescription($r["description"]); rtnkeywords($r["keywords"]); $banner = $r['banner'] ? "images/banner/".$r['banner'] : "images/a_ban.jpg"; ?>