diff --git a/mobile/shop/mypage.php b/mobile/shop/mypage.php index 6601c51cb..45f4475a4 100644 --- a/mobile/shop/mypage.php +++ b/mobile/shop/mypage.php @@ -11,7 +11,7 @@ include_once(G5_MSHOP_PATH.'/_head.php'); $cp_count = 0; $sql = " select cp_id from {$g5['g5_shop_coupon_table']} - where mb_id = '{$member['mb_id']}' + where mb_id IN ( '{$member['mb_id']}', '전체회원' ) and cp_start <= '".G5_TIME_YMD."' and cp_end >= '".G5_TIME_YMD."' "; $res = sql_query($sql); diff --git a/shop/coupon.php b/shop/coupon.php index 2fd458970..7558224aa 100644 --- a/shop/coupon.php +++ b/shop/coupon.php @@ -9,7 +9,7 @@ include_once(G5_PATH.'/head.sub.php'); $sql = " select cp_id, cp_subject, cp_method, cp_target, cp_start, cp_end, cp_type, cp_price from {$g5['g5_shop_coupon_table']} - where mb_id = '{$member['mb_id']}' + where mb_id IN ( '{$member['mb_id']}', '전체회원' ) and cp_start <= '".G5_TIME_YMD."' and cp_end >= '".G5_TIME_YMD."' order by cp_no "; diff --git a/shop/mypage.php b/shop/mypage.php index 6a8e97833..14191f255 100644 --- a/shop/mypage.php +++ b/shop/mypage.php @@ -16,7 +16,7 @@ include_once('./_head.php'); $cp_count = 0; $sql = " select cp_id from {$g5['g5_shop_coupon_table']} - where mb_id = '{$member['mb_id']}' + where mb_id IN ( '{$member['mb_id']}', '전체회원' ) and cp_start <= '".G5_TIME_YMD."' and cp_end >= '".G5_TIME_YMD."' "; $res = sql_query($sql);