我无法在日历上显示正确日期的事件。
到目前为止,这是我的代码:
$timestamp = mktime(0,0,0,$cMonth,1,$cYear);
$maxday = date("t",$timestamp);
$thismonth = getdate ($timestamp);
$startday = $thismonth['wday'];
$queryEvent = "SELECT * FROM myweekevents WHERE date = '$timestamp' ";
$resultEvent = mysql_query($queryEvent);
$rowEvent = mysql_fetch_assoc($resultEvent);
我无法显示正确日期的活动信息。我数据库中日期的格式是 YMD。这就是它与时间戳不匹配的原因吗?