function th_month($a)
{
$monthTH = array('','มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน','กรกฎาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม');
return $monthTH[$a];
}
function DateTimeDiff($begin,$end)
{
//return (strtotime($strDateTime2) - strtotime($strDateTime1))/ ( 60 * 60 ); // 1 Hour = 60*60
$remain=intval(strtotime($end)-strtotime($begin));
$wan=floor($remain/86400);
$l_wan=$remain%86400;
$hour=floor($l_wan/3600);
$l_hour=$l_wan%3600;
$minute=floor($l_hour/60);
$second=$l_hour%60;
return $hour." h ".$minute." m ".$second." s";
}
?>
ITA ปี echo $year ;?>
$sql="select * from ita_data where eb= 'eb1' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb2' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb3' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb4' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb5' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb6' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb7' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb8' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb9' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb10' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb11' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb12' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb13' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb14' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb15' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb16' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb17' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb18' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb19' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb20' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb21' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb22' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb23' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>
$sql="select * from ita_data where eb= 'eb24' and years='".$year."' order by id ";
$result = mysqli_query($ryhCN,$sql);
$i=1;
?>