경로 및 전체테이블명 변경
This commit is contained in:
@ -49,7 +49,7 @@ include_once("./_common.php");
|
||||
// 페이지당 행수
|
||||
$page_rows = 100;
|
||||
|
||||
$sql = " select count(*) as cnt from $g4[yc4_item_table] where it_use = '1' ";
|
||||
$sql = " select count(*) as cnt from $g4[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 $g4[yc4_item_table]
|
||||
$sql = " select * from $g4[shop_item_table]
|
||||
where it_use = '1'
|
||||
order by ca_id
|
||||
limit $from_record, $page_rows ";
|
||||
@ -103,7 +103,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$code = substr($row[ca_id],0,$k*2);
|
||||
|
||||
$sql3 = " select ca_name from $g4[yc4_category_table] where ca_id = '$code' ";
|
||||
$sql3 = " select ca_name from $g4[shop_category_table] where ca_id = '$code' ";
|
||||
$row3 = sql_fetch($sql3);
|
||||
|
||||
$category .= $bar . $row3[ca_name];
|
||||
|
||||
Reference in New Issue
Block a user