diff --git a/mobile/shop/mypage.php b/mobile/shop/mypage.php index 9a76b4932..c44b87038 100644 --- a/mobile/shop/mypage.php +++ b/mobile/shop/mypage.php @@ -6,6 +6,15 @@ if (!$is_member) $g4['title'] = '마이페이지'; include_once(G4_MSHOP_PATH.'/_head.php'); + +// 쿠폰 +$sql = " select count(*) as cnt + from {$g4['shop_coupon_table']} + where mb_id = '{$member['mb_id']}' + and cp_used = '0' + and cp_start <= '".G4_TIME_YMD."' + and cp_end >= '".G4_TIME_YMD."' "; +$cp = sql_fetch($sql); ?>