在我的数据库中,我有凌晨1:00,凌晨1:30,凌晨2:00的值,但唯一的选项值是禁用是凌晨2:00。我只是希望所有的价值都在数据库上,该选项将禁用我该怎么办?
$qq2= mysqli_query($link,"select * from appointment where Status='". $app ."' and PrefferedDate='". $date ."' and DoctorId='". $w."'");
while($rrr = mysqli_fetch_array($qq2)){
echo $time=$rrr["PrefferedTime"];
}
<?php
if($tf==1 && $tf<=$tt){
?>
<option value="1"
<?php
if($time== "1:00 am " ){
echo "disabled";} else{
echo "";}?>>1:00 am</option>
<?php
$tf++;
}
?>
<?php
if($tf==2 && $tf<=$tt){
?>
<option value="2"
<?php
if($time== "1:30 am "){
echo "disabled";} else{
echo "";}?>>1:30 am</option>
<?php
$tf++;
}
?>
<?php
if($tf==3 && $tf<=$tt){
?>
<option value="3"
<?php
if($time== "2:00 am " ){
echo "disabled";} else{
echo "";}?>>2:00 am</option>
<?php
$tf++;
}
?>