mysqli 지원 추가
This commit is contained in:
@ -34,7 +34,7 @@ function get_mshop_category($ca_id, $len)
|
||||
<a href="<?php echo $mshop_ca_href.$mshop_ca_row1['ca_id']; ?>"><?php echo get_text($mshop_ca_row1['ca_name']); ?></a>
|
||||
<?php
|
||||
$mshop_ca_res2 = sql_query(get_mshop_category($mshop_ca_row1['ca_id'], 4));
|
||||
if(mysql_num_rows($mshop_ca_res2))
|
||||
if(sql_num_rows($mshop_ca_res2))
|
||||
echo '<button class="sub_ct_toggle ct_op">'.get_text($mshop_ca_row1['ca_name']).' 하위분류 열기</button>'.PHP_EOL;
|
||||
|
||||
for($j=0; $mshop_ca_row2=sql_fetch_array($mshop_ca_res2); $j++) {
|
||||
@ -45,7 +45,7 @@ function get_mshop_category($ca_id, $len)
|
||||
<a href="<?php echo $mshop_ca_href.$mshop_ca_row2['ca_id']; ?>">- <?php echo get_text($mshop_ca_row2['ca_name']); ?></a>
|
||||
<?php
|
||||
$mshop_ca_res3 = sql_query(get_mshop_category($mshop_ca_row2['ca_id'], 6));
|
||||
if(mysql_num_rows($mshop_ca_res3))
|
||||
if(sql_num_rows($mshop_ca_res3))
|
||||
echo '<button type="button" class="sub_ct_toggle ct_op">'.get_text($mshop_ca_row2['ca_name']).' 하위분류 열기</button>'.PHP_EOL;
|
||||
|
||||
for($k=0; $mshop_ca_row3=sql_fetch_array($mshop_ca_res3); $k++) {
|
||||
@ -56,7 +56,7 @@ function get_mshop_category($ca_id, $len)
|
||||
<a href="<?php echo $mshop_ca_href.$mshop_ca_row3['ca_id']; ?>">- <?php echo get_text($mshop_ca_row3['ca_name']); ?></a>
|
||||
<?php
|
||||
$mshop_ca_res4 = sql_query(get_mshop_category($mshop_ca_row3['ca_id'], 8));
|
||||
if(mysql_num_rows($mshop_ca_res4))
|
||||
if(sql_num_rows($mshop_ca_res4))
|
||||
echo '<button type="button" class="sub_ct_toggle ct_op">'.get_text($mshop_ca_row3['ca_name']).' 하위분류 열기</button>'.PHP_EOL;
|
||||
|
||||
for($m=0; $mshop_ca_row4=sql_fetch_array($mshop_ca_res4); $m++) {
|
||||
@ -67,7 +67,7 @@ function get_mshop_category($ca_id, $len)
|
||||
<a href="<?php echo $mshop_ca_href.$mshop_ca_row4['ca_id']; ?>">- <?php echo get_text($mshop_ca_row4['ca_name']); ?></a>
|
||||
<?php
|
||||
$mshop_ca_res5 = sql_query(get_mshop_category($mshop_ca_row4['ca_id'], 10));
|
||||
if(mysql_num_rows($mshop_ca_res5))
|
||||
if(sql_num_rows($mshop_ca_res5))
|
||||
echo '<button type="button" class="sub_ct_toggle ct_op">'.get_text($mshop_ca_row4['ca_name']).' 하위분류 열기</button>'.PHP_EOL;
|
||||
|
||||
for($n=0; $mshop_ca_row5=sql_fetch_array($mshop_ca_res5); $n++) {
|
||||
|
||||
@ -5,7 +5,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
$hsql = " select ev_id, ev_subject, ev_subject_strong from {$g5['g5_shop_event_table']} where ev_use = '1' order by ev_id desc ";
|
||||
$hresult = sql_query($hsql);
|
||||
|
||||
if(mysql_num_rows($hresult)) {
|
||||
if(sql_num_rows($hresult)) {
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
@ -20,7 +20,7 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_SKIN_URL.'/style.css">',
|
||||
// 2단계 분류 판매 가능한 것만
|
||||
$sql2 = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where LENGTH(ca_id) = '4' and SUBSTRING(ca_id,1,2) = '{$row['ca_id']}' and ca_use = '1' order by ca_order, ca_id ";
|
||||
$result2 = sql_query($sql2);
|
||||
$count = mysql_num_rows($result2);
|
||||
$count = sql_num_rows($result2);
|
||||
?>
|
||||
<li class="gnb_1dli" style="z-index:<?php echo $gnb_zindex; ?>">
|
||||
<a href="<?php echo G5_SHOP_URL.'/list.php?ca_id='.$row['ca_id']; ?>" class="gnb_1da<?php if ($count) echo ' gnb_1dam'; ?>"><?php echo $row['ca_name']; ?></a>
|
||||
|
||||
Reference in New Issue
Block a user