From d4c158cfa433a0756a13a2806ac82a9d985ddd70 Mon Sep 17 00:00:00 2001 From: kagla Date: Tue, 16 Jul 2024 10:56:06 +0900 Subject: [PATCH 1/2] =?UTF-8?q?php-mysql=20=EB=AF=B8=EC=84=A4=EC=B9=98?= =?UTF-8?q?=EC=8B=9C,=20=EA=B7=B8=EB=88=84=EB=B3=B4=EB=93=9C=20=EC=84=A4?= =?UTF-8?q?=EC=B9=98=20=EA=B2=BD=EA=B3=A0=EC=B0=BD=EC=97=90=20=EC=A0=95?= =?UTF-8?q?=EB=B3=B4=20=EC=95=88=EB=82=98=EC=98=A4=EB=8A=94=20=EA=B2=BD?= =?UTF-8?q?=EC=9A=B0=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index 053486975..17cd81a90 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1683,7 +1683,10 @@ function sql_connect($host, $user, $pass, $db=G5_MYSQL_DB) die('Connect Error: '.mysqli_connect_error()); } } else { - $link = mysql_connect($host, $user, $pass); + if (!function_exists('mysql_connect')) { + die('MySQL이 설치되지 않아 mysql_connect 함수를 사용할 수 없습니다.'); + } + $link = mysql_connect($host, $user, $pass) or die('MySQL Host, User, Password 정보에 오류가 있습니다.'); } return $link; From d666e3467fd50af9b62f28a51cdf2bec7d0ad999 Mon Sep 17 00:00:00 2001 From: kagla Date: Thu, 18 Jul 2024 08:18:11 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=EC=B0=BD=EA=B3=A0=EC=9E=AC=EA=B3=A0=20?= =?UTF-8?q?=EC=97=86=EC=9D=84=EB=95=8C=20'=EC=9E=AC=EA=B3=A0=20=EB=B6=80?= =?UTF-8?q?=EC=A1=B1'=20sound=20=EC=B2=98=EB=A6=AC=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=EC=9E=98=EB=AA=BB=20=EB=85=B8=EC=B6=9C=EB=90=9C=20span=20?= =?UTF-8?q?=ED=83=9C=EA=B7=B8=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/itemstocklist.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/adm/shop_admin/itemstocklist.php b/adm/shop_admin/itemstocklist.php index 93fe0f6e6..b1133b20b 100644 --- a/adm/shop_admin/itemstocklist.php +++ b/adm/shop_admin/itemstocklist.php @@ -159,7 +159,6 @@ $listall = '전체목 $it_stock_qty_st = ''; // 스타일 정의 if($row['it_stock_qty'] <= $row['it_noti_qty']) { $it_stock_qty_st = ' sit_stock_qty_alert'; - $it_stock_qty = ''.$it_stock_qty.' ! 재고부족 '; } $bg = 'bg'.($i%2); @@ -171,7 +170,7 @@ $listall = '전체목 - +