From 7e10c8960507a22799d50168e09d1a11f7ce2755 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 28 Jan 2015 09:05:45 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=B0=EC=86=A1=EC=A7=80=20=EB=AA=A9?= =?UTF-8?q?=EB=A1=9D=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/orderaddress.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/shop/orderaddress.php b/shop/orderaddress.php index 469c9e8ba..5fe3ba20e 100644 --- a/shop/orderaddress.php +++ b/shop/orderaddress.php @@ -10,7 +10,7 @@ if($w == 'd') { goto_url($_SERVER['PHP_SELF']); } -$sql_common = " from {$g5['g5_shop_order_address_table']} "; +$sql_common = " from {$g5['g5_shop_order_address_table']} where mb_id = '{$member['mb_id']}' "; $sql = " select count(ad_id) as cnt " . $sql_common; $row = sql_fetch($sql); @@ -22,8 +22,7 @@ if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이 $from_record = ($page - 1) * $rows; // 시작 열을 구함 $sql = " select * - from {$g5['g5_shop_order_address_table']} - where mb_id = '{$member['mb_id']}' + $sql_common order by ad_default desc, ad_id desc limit $from_record, $rows";