<
แสดงความคิดเห็น/ความรู้สึก
$pk = date("ymdHis"); $objConnect = mysql_connect("localhost","root","1qazadmin") or die("Error Connect to Database"); $objDB = mysql_select_db("sc-data"); mysql_query("SET NAMES TIS620"); mysql_query("windows-874"); function DateThai($strDate) { $strYear = date("y",strtotime($strDate))+43; $strMonth= date("n",strtotime($strDate)); $strDay= date("d",strtotime($strDate)); $strHour= date("H",strtotime($strDate)); $strMinute= date("i",strtotime($strDate)); $strSeconds= date("s",strtotime($strDate)); $strMonthCut = Array("","/01/","/02/","/03/","/04/","/05/","/06/","/07/","/08/","/09/","10/","/11/","/12/"); //$strMonthCut = Array("","..","..","..","..","..","..","..","..","..","..","..",".."); //$strMonthCut = Array("","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); $strMonthThai=$strMonthCut[$strMonth]; return "$strDay $strMonthThai $strYear"; } ?>