这是我的代码。我知道 500 错误通常是编码错误,但我找不到。谢谢你的时间。
$today = "1234";
$appt = "1235";
$date = explode("/", $data[1]); // EXAMPLE DATE IS 06/01/2012
$m = date("m",mktime(0, 0, 0, $date["0"], $date["1"], $date["2"]));
$d = date("d",mktime(0, 0, 0, $date["0"], $date["1"], $date["2"]));
$y = date("Y",mktime(0, 0, 0, $date["0"], $date["1"], $date["2"]));
$appt = date(mktime(0, 0, 0, "$m", "$d", "$y"));
$today = strtotime("today");
if ($today > $appt) {
} else {
$appt[] = array($data[8],$data[1],$data[2],$data[4],$data[3],$data[7],$data[9],$data[5],$data[15],$data[6],$data[10],$data[12],$data[13],$data[14]);
}