include("include.php") ; if ( ($reqCatId != 0) && ($reqId != 0) ) { $sql_table = "contents"; } if ($sql_table !="" ) { $sql_select = "id,typeid,title,summary,content,pathimage,date_format(postdate,'%d/%m/%Y %H:%i:%s') as postdate"; $sql_where = "where id = $reqId 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 = "
$title |
$strlangPGDTPHue - $postdate |
|
$image $summary $content |