我编写了一个日历实现,它正在工作,但只显示一组数据,我试图让它出现在我的选择查询中的所有数据:
$events = '';
$query = mysql_query('SELECT event_id, event_type, time, date, location, home_or_away, team_id FROM event WHERE date = "'.$deets.'"');
$num_rows = mysql_num_rows($query);
if($num_rows > 0) {
$events .= '<div id="eventsControl"><button onMouseDown="overlay()">Close</button><br /><br /><b> ' . $deets . '</b><br /><br /></div>';
while($row = mysql_fetch_array($query)){
我知道它与此有关,但我不确切知道要获取“event_type”、“time”等的代码
$desc = $row['event_id'] ;
$events .= '<div id="eventsBody">' . $desc . '<br /> <hr><br /></div>';
}
}
echo $events;
?>