//---- 오늘 날짜
$thisyear = date('Y'); // 4자리 연도
$thismonth = date('n'); // 0을 포함하지 않는 월
$today = date('j'); // 0을 포함하지 않는 일
//------ $year, $month 값이 없으면 현재 날짜
$year = isset($_GET['year']) ? $_GET['year'] : $thisyear;
$month = isset($_GET['month']) ? $_GET['month'] : $thismonth;
$day = isset($_GET['day']) ? $_GET['day'] : $today;
$sel_mon = sprintf("%02d",$month);
$sel_day = sprintf("%02d",$day);
<?php if ($is_member) { ?>
<div class="d-flex align-items-center p-3 my-3 rounded shadow-sm index-title-bar">
<?php echo get_member_profile_img($member['mb_id']); ?>
<div class="lh-1">
<h1 class="h6 mb-0 lh-1"><?php echo $member['mb_nick']; ?>님 안녕하세요</h1>
<small>최종접속일시 : <?php echo $member['mb_today_login']; ?></small>
</div>
</div>
<?php } ?>
<?php
$q_wdate = $year.'-'.$sel_mon.'-'.$sel_day;
$q1q = "SELECT count(*) as lon_cnt FROM tbl_loan WHERE left(wdate,10) = '{$q_wdate}'";
$r1 = sql_fetch($q1q);
$today_lon_count = $r1[lon_cnt];
?>
댓글(0)