쿼리를 로그에서 한줄로 보이도록 수정

This commit is contained in:
gnuboard
2013-06-21 18:15:51 +09:00
parent 98f71668d8
commit 6d0c3a9a15
11 changed files with 32 additions and 78 deletions

View File

@ -7,10 +7,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<ul id="gnb_1dul">
<?php
// 1단계 분류 판매 가능한 것만
$hsql = " select ca_id, ca_name from {$g4['shop_category_table']}
where length(ca_id) = '2'
and ca_use = '1'
order by ca_id ";
$hsql = " select ca_id, ca_name from {$g4['shop_category_table']} where length(ca_id) = '2' and ca_use = '1' order by ca_id ";
$hresult = sql_query($hsql);
$gnb_zindex = 999; // gnb_1dli z-index 값 설정용
$count = count($hresult);
@ -22,11 +19,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<a href="<?php echo G4_SHOP_URL.'/list.php?ca_id='.$row['ca_id']; ?>" class="gnb_1da"><?php echo $row['ca_name']; ?></a>
<?php
// 2단계 분류 판매 가능한 것만
$sql2 = " select ca_id, ca_name from {$g4['shop_category_table']}
where LENGTH(ca_id) = '4'
and SUBSTRING(ca_id,1,2) = '{$row['ca_id']}'
and ca_use = '1'
order by ca_id ";
$sql2 = " select ca_id, ca_name from {$g4['shop_category_table']} where LENGTH(ca_id) = '4' and SUBSTRING(ca_id,1,2) = '{$row['ca_id']}' and ca_use = '1' order by ca_id ";
$result2 = sql_query($sql2);
for ($j=0; $row2=sql_fetch_array($result2); $j++)
{