- URL 하드코딩 → .env APP_URL 기반 동적 URL로 변경 - DB 연결 하드코딩 → .env 기반으로 변경 - MySQL strict mode DATE 오류 수정
16 lines
549 B
PHP
16 lines
549 B
PHP
<?php
|
|
// 금일 연차인 사람 나타내기
|
|
require_once("./lib/mydb.php");
|
|
$pdo = db_connect();
|
|
$now = date("Y-m-d",time()) ;
|
|
|
|
$sql="select * from mirae8440.al where (askdatefrom between date('$now') and date('$now')) and (askdateto between date('$now') and date('$now'))" ;
|
|
$stmh = $pdo->query($sql); // 검색조건에 맞는글 stmh
|
|
$total_row=$stmh->rowCount();
|
|
if($total_row>0 )
|
|
include "./load_aldisplay.php";
|
|
|
|
// between date('$yesterday') and date('$yesterday')
|
|
|
|
?>
|
|
|