"生產設備", "B" => "建築工程類", "C" => "工業工程規劃", "D" => "修繕維保服務", "E" => "儀器設備", "F" => "辦公設備", "G" => "辦公家具", "H" => "IT類產品", "I" => "諮詢服務", "J" => "維保電梯配件"]; $sql = "select department_id, name from department"; $res = mysqli_query($link, $sql); while ($row = mysqli_fetch_row($res)) { $department_arr[$row[0]] = $row[1]; } mysqli_free_result($res); // sql語法存在變數中 $sql = "select * from bargain order by id"; // 用mysqli_query方法執行(sql語法)將結果存在變數中 $data = mysqli_query($link,$sql); ?>
Please fill up the required field!"; } else { header("Location:bargain-index.php"); } } ?> There is no record!"; endif; #代表結束連線 mysqli_close($link); include "footer.php"; ?>