" . "------------"; include "include-header.php"; require_once "db/database.php"; # 載入db.php來連結資料庫 $data = array(); # 設置一個空陣列來放資料 $sql = "SELECT * FROM repair where (fixnumber = '$fixnumber')"; # sql語法存在變數中 $data = mysqli_query($link,$sql); # 用mysqli_query方法執行(sql語法)將結果存在變數中 foreach($data as $data){ $contact_person = $data['contact_person']; $contact_number = $data['contact_number']; $damage_detail = $data['damage_detail']; $file_path = $data['file_path']; } ?>