mysqli 지원 추가
This commit is contained in:
@ -82,7 +82,7 @@ include_once('./_head.php');
|
||||
|
||||
$it_send_cost = 0;
|
||||
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
// 합계금액 계산
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
|
||||
@ -19,7 +19,7 @@ $result = sql_query($sql);
|
||||
$sql2 = " select ct_price, it_name, ct_send_cost from {$g5['g5_shop_cart_table']} where od_id = '$cart_id' and it_id = '$it_id' order by ct_id asc limit 1 ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
|
||||
if(!mysql_num_rows($result))
|
||||
if(!sql_num_rows($result))
|
||||
die('no-cart');
|
||||
?>
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ $sql = " select *
|
||||
|
||||
$result = sql_query($sql);
|
||||
|
||||
if(!mysql_num_rows($result))
|
||||
if(!sql_num_rows($result))
|
||||
alert_close('배송지 목록 자료가 없습니다.');
|
||||
|
||||
$order_action_url = G5_HTTPS_SHOP_URL.'/orderaddressupdate.php';
|
||||
|
||||
@ -18,7 +18,7 @@ $sql = " select *
|
||||
and cp_end >= '".G5_TIME_YMD."'
|
||||
and cp_minimum <= '$price' ";
|
||||
$result = sql_query($sql);
|
||||
$count = mysql_num_rows($result);
|
||||
$count = sql_num_rows($result);
|
||||
?>
|
||||
|
||||
<!-- 쿠폰 선택 시작 { -->
|
||||
|
||||
@ -17,7 +17,7 @@ if($tno) {
|
||||
}
|
||||
|
||||
$content .= '<p>오류내용</p>';
|
||||
$content .= '<p>'.$sql.'</p><p>'.mysql_errno().' : '.mysql_error().'<p>error file : '.$_SERVER['SCRIPT_NAME'].'</p>';
|
||||
$content .= '<p>'.$sql.'</p><p>'.sql_error_info().'<p>error file : '.$_SERVER['SCRIPT_NAME'].'</p>';
|
||||
|
||||
// 메일발송
|
||||
mailer($od_name, $od_email, $config['cf_admin_email'], $subject, $content, 1);
|
||||
|
||||
@ -69,7 +69,7 @@ if($is_kakaopay_use) {
|
||||
$comm_free_mny = 0; // 면세금액
|
||||
$tot_tax_mny = 0;
|
||||
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
// 합계금액 계산
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
|
||||
@ -96,7 +96,7 @@ if($od['od_pg'] == 'lg') {
|
||||
and it_id = '{$row['it_id']}'
|
||||
order by io_type asc, ct_id asc ";
|
||||
$res = sql_query($sql);
|
||||
$rowspan = mysql_num_rows($res) + 1;
|
||||
$rowspan = sql_num_rows($res) + 1;
|
||||
|
||||
// 합계금액 계산
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
|
||||
@ -36,7 +36,7 @@ $sql = " select *
|
||||
( cp_method = '1' and ( cp_target IN ( '{$it['ca_id']}', '{$it['ca_id2']}', '{$it['ca_id3']}' ) ) )
|
||||
) ";
|
||||
$result = sql_query($sql);
|
||||
$count = mysql_num_rows($result);
|
||||
$count = sql_num_rows($result);
|
||||
?>
|
||||
|
||||
<!-- 쿠폰 선택 시작 { -->
|
||||
|
||||
@ -16,7 +16,7 @@ $sql = " select *
|
||||
and cp_end >= '".G5_TIME_YMD."'
|
||||
and cp_minimum <= '$price' ";
|
||||
$result = sql_query($sql);
|
||||
$count = mysql_num_rows($result);
|
||||
$count = sql_num_rows($result);
|
||||
?>
|
||||
|
||||
<!-- 쿠폰선택 시작 { -->
|
||||
|
||||
@ -162,7 +162,7 @@ if(!$result) {
|
||||
break;
|
||||
}
|
||||
|
||||
die("<p>$sql<p>" . mysql_errno() . " : " . mysql_error() . "<p>error file : {$_SERVER['SCRIPT_NAME']}");
|
||||
die("<p>$sql<p>" . sql_error_info() . "<p>error file : {$_SERVER['SCRIPT_NAME']}");
|
||||
}
|
||||
|
||||
// 주문번호가 있으면 결제정보 반영
|
||||
@ -200,7 +200,7 @@ if($pp_receipt_price > 0 && $pp['pp_id'] && $pp['od_id']) {
|
||||
break;
|
||||
}
|
||||
|
||||
die("<p>$sql<p>" . mysql_errno() . " : " . mysql_error() . "<p>error file : {$_SERVER['SCRIPT_NAME']}");
|
||||
die("<p>$sql<p>" . sql_error_info() . "<p>error file : {$_SERVER['SCRIPT_NAME']}");
|
||||
}
|
||||
|
||||
// 미수금 정보 업데이트
|
||||
|
||||
@ -107,7 +107,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
$opt_count = @sql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
|
||||
@ -79,7 +79,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
$opt_count = @sql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
|
||||
@ -80,7 +80,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
$opt_count = @sql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
|
||||
@ -30,7 +30,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
$opt_count = @sql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
|
||||
@ -27,7 +27,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
$opt_count = @sql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
|
||||
@ -47,7 +47,7 @@ include_once('./_head.php');
|
||||
$sql = " select a.wi_id, a.wi_time, b.* from {$g5['g5_shop_wish_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id ) ";
|
||||
$sql .= " where a.mb_id = '{$member['mb_id']}' order by a.wi_id desc ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row = mysql_fetch_array($result); $i++) {
|
||||
for ($i=0; $row = sql_fetch_array($result); $i++) {
|
||||
|
||||
$out_cd = '';
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' ";
|
||||
|
||||
Reference in New Issue
Block a user