include("zone_page_header.php") ?>
include("zone_left.php"); ?> |
function stripslashes2($string) {
$string = str_replace("\\\"", "\"", $string);
$string = str_replace("\\'", "'", $string);
$string = str_replace("\\\\", "\\", $string);
return $string;
}
$news_id=$_REQUEST['news_id'];
$sql_condition="";
$sql="SELECT * FROM all_boon_events WHERE news_id=$news_id $sql_condition";
//echo $sql." "; $qry_news= $db01->query($sql); $n_news=$qry_news->num_rows; if ($n_news>0){ while ($row_news=mysqli_fetch_object($qry_news)){ $news_title=$row_news->news_title; $news_datefrom=$row_news->news_datefrom; $news_dateto=$row_news->news_dateto; $news_description=$row_news->news_description; $news_viewed=$row_news->news_viewed; $news_title=stripslashes2($news_title); $news_description=stripslashes2($news_description); //$news_detail=str_replace($cr," ",$news_detail); } } // แปลงเป็นค่าวันที่ไทย $inputdate=$news_datefrom; list($bd_YEAR, $bd_year,$YEAR, $year, $month, $day,$month_shortname, $month_fullname)=$objDateTime->DateTime_splitVar($inputdate, "th"); $show_news_datefrom=$day." ".$month_shortname." ".$bd_year; ?>
|