prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_INT); $stmh->execute(); $row = $stmh->fetch(PDO::FETCH_ASSOC); include '_row.php'; } catch (PDOException $Exception) { echo "오류: ".$Exception->getMessage(); exit; } } else { include '_row.php'; $mode = 'insert'; $dateofentry = date('Y-m-d'); $referencedate = date('Y'); } $title_message = ($mode === 'update') ? '연차 수정' : '연차 신규 등록'; ?>
| 성명 | |||
| 소속 | 부서 | ||
| 입사일 | 해당연도 | ||
| 연차 발생일수 | 비고 | ||