我正在進行日曆預約,如果預訂不可用,我想在選項標籤中說預訂或隱藏。 在MySQL有時間表:如何從選項標籤中刪除某些行?
id time_reservation
1 07:00 - 07:30
2 07:30 - 08:00
3 08:00 - 08:30
.
.
.
21 17:00 - 17:30
22 17:30 - 18:00
23 18:00 - 18:30
24 18:30 - 19:00
在其他表
存在與
ID
NAME
reservation_date
**reservation_time**
date_time
$sql = "SELECT * FROM calendar_time";
$result = mysql_query($sql);
echo "<form action='".$_SERVER['PHP_SELF']."' method='POST'>";
echo "<input name='datepicker' type='hidden' id='datepicker_value' />";
echo "<select name='res' class='res'>";
echo "<option value=''></option>";
while($row = mysql_fetch_array($result)){
echo "<option value='".$row['time_reservation']."'>".$row['time_reservation']."</option>";
}
echo "</select>";
echo "<input name='submit' type='submit' value='ressf' />";
echo "</form>";
你正在做什麼問題? – Nacho 2011-04-26 12:22:55
那麼我有工作系統所有工作正常進行預訂,它告訴如果保留,如果不可用,但我想在選項標記中說不可用或隱藏,如果它保留從日曆事件中獲取time_reservation並告訴選項標記隱藏它 – orion 2011-04-26 12:32:14