shop 테이블명 g5_shop 으로 변경

This commit is contained in:
chicpro
2013-09-13 17:13:41 +09:00
parent 90ee89b4f5
commit fa4034cf82
10 changed files with 9 additions and 11 deletions

View File

@ -10,7 +10,6 @@ $sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id
$result = sql_query($sql);
while ($row=sql_fetch_array($result)) {
//$row2 = sql_fetch(" select count(*) as cnt from $g5[shop_category_table] where ca_id like '$row[ca_id]%' ");
$row2 = sql_fetch(" select count(*) as cnt from {$g5['g5_shop_item_table']} where (ca_id like '{$row['ca_id']}%' or ca_id2 like '{$row['ca_id']}%' or ca_id3 like '{$row['ca_id']}%') and it_use = '1' ");
$str .= '<li><a href="./list.php?ca_id='.$row['ca_id'].'">'.$row['ca_name'].' ('.$row2['cnt'].')</a></li>';