shop 테이블명 g5_shop 으로 변경

This commit is contained in:
chicpro
2013-09-13 16:23:29 +09:00
parent fbe71caa80
commit 90ee89b4f5
217 changed files with 933 additions and 1624 deletions

View File

@ -49,7 +49,7 @@ include_once('./_common.php');
// 페이지당 행수
$page_rows = 100;
$sql = " select count(*) as cnt from {$g5['shop_item_table']} where it_use = '1' ";
$sql = " select count(*) as cnt from {$g5['g5_shop_item_table']} where it_use = '1' ";
$row = sql_fetch($sql);
$total_count = $row['cnt'];
?>
@ -86,7 +86,7 @@ if ($page == "") $page = 1;
// 시작 레코드 구함
$from_record = ($page - 1) * $page_rows;
$sql = " select * from {$g5['shop_item_table']}
$sql = " select * from {$g5['g5_shop_item_table']}
where it_use = '1'
order by ca_id
limit $from_record, $page_rows ";
@ -101,7 +101,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$code = substr($row['ca_id'],0,$k*2);
$sql3 = " select ca_name from {$g5['shop_category_table']} where ca_id = '$code' ";
$sql3 = " select ca_name from {$g5['g5_shop_category_table']} where ca_id = '$code' ";
$row3 = sql_fetch($sql3);
$category .= $bar . $row3['ca_name'];
@ -112,7 +112,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$image = get_it_imageurl($row['it_id']);
// 상품별옵션
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
$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);