badChar($_GET["cat_id"]); $id = $common->badChar($_GET["id"]); if ($id != 0) { $sql_table = $_GET["tbl"]; } if ($sql_table != "") { $sql_select = "id,typeid,title,summary,content,pathimage,date_format(postdate,'%d/%m/%Y') as postdate"; $sql_where = "where id = $id and approved='1' and lang='$global_lang'"; $sql_limit = " limit 0,1"; $sql_result = $exec->selectData($sql_select, $sql_table, $sql_where, $sql_order, $sql_limit); $str_newsmain = ""; if (@mysql_num_rows($sql_result) > 0) { if ($r = @mysql_fetch_array($sql_result)) { $summary = $common->outputString($r["summary"]); $title = $common->outputString($r["title"]); $content = $common->outputString($r["content"]); $postdate = $r["postdate"]; $image = $common->showImageDetail($r["pathimage"], "", $width = 200, "align='left'"); $str_newsmain = "
$postdate

$title

$summary $content
[ $print_ ]    [ $close_ ]
"; } } @mysql_free_result($sql_result); } ?>