상품검색 페이지에서 분류 노출 오류 수정

This commit is contained in:
chicpro
2014-08-11 09:53:55 +09:00
parent 3c8dcfd9b5
commit 55e8b396c5
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ $total_page = ceil($total_count / $items); // 전체 페이지 계산
<div id="ssch_cate">
<ul>
<?php
$sql = " select b.ca_id, b.ca_name, count(*) as cnt $sql_common $sql_where and length(b.ca_id) = 2 group by b.ca_id order by b.ca_id ";
$sql = " select b.ca_id, b.ca_name, count(*) as cnt $sql_common $sql_where group by b.ca_id order by b.ca_id ";
$result = sql_query($sql);
$total_cnt = 0;
for ($i=0; $row=sql_fetch_array($result); $i++) {

View File

@ -162,7 +162,7 @@ if ($is_admin) {
<div id="ssch_cate">
<ul>
<?php
$sql = " select b.ca_id, b.ca_name, count(*) as cnt $sql_common $sql_where and length(b.ca_id) = 2 group by b.ca_id order by b.ca_id ";
$sql = " select b.ca_id, b.ca_name, count(*) as cnt $sql_common $sql_where group by b.ca_id order by b.ca_id ";
$result = sql_query($sql);
$total_cnt = 0;
for ($i=0; $row=sql_fetch_array($result); $i++) {