"C區會議室1", "2" => "C區會議室2", "3" => "大直會議室"]; $etime_arr = ["07:59" => "08:00", "08:29" => "08:30", "08:59" => "09:00", "09:29" => "09:30", "09:59" => "10:00", "10:29" => "10:30", "10:59" => "11:00", "11:29" => "11:30", "11:59" => "12:00", "12:29" => "12:30", "12:59" => "13:00", "13:29" => "13:30", "13:59" => "14:00", "14:29" => "14:30", "14:59" => "15:00", "15:29" => "15:30", "15:59" => "16:00", "16:29" => "16:30", "16:59" => "17:00", "17:29" => "17:30", "17:59" => "18:00", "18:29" => "18:30", "18:59" => "19:00", "19:29" => "19:30", "19:59" => "20:00", "20:29" => "20:30", "20:59" => "21:00", "21:29" => "21:30", "21:59" => "22:00", "22:29" => "22:30", "22:59" => "23:00", "23:29" => "23:30", "23:59" => "00:00"]; // 設置一個空陣列來放資料 $data = array(); // sql語法存在變數中 $sql = "select * from meeting where (creater = '$user_id' or attend like '%$user_id%') order by id"; // 用mysqli_query方法執行(sql語法)將結果存在變數中 $data = mysqli_query($link,$sql); ?>
There is no record!"; endif; #代表結束連線 mysqli_close($link); include "footer.php"; ?>