5) {
sleep(1);
header("Location:" . $WebSite . "login/login_form.php");
exit;
}
$APIKEY = "2ddb841648d38606331320046099cf67";
isset($_REQUEST["Lat"]) ? $Lat=$_REQUEST["Lat"] : $Lat='';
isset($_REQUEST["Lng"]) ? $Lng=$_REQUEST["Lng"] : $Lng='';
isset($_REQUEST["HomeAddress"]) ? $HomeAddress=$_REQUEST["HomeAddress"] : $HomeAddress='';
// 첫 화면 표시 문구
$title_message = '직원 주소록';
?>
include './myheader.php'; ?>
= $title_message ?>
| 번호 |
직급 |
성명 |
연락처 |
query($sql);
$employees = []; // 결과를 저장할 배열을 초기화합니다.
// 결과를 배열에 저장합니다.
while ($row = $stmh->fetch(PDO::FETCH_ASSOC)) {
$employees[] = [$row['position'], $row['name'], $row['hp']];
}
} catch (PDOException $Exception) {
echo "오류: " . $Exception->getMessage();
}
foreach ($employees as $key => $employee) {
$number = $key + 1;
list($position, $name, $contact) = $employee;
?>
|
|
|
|