코드정리

This commit is contained in:
chicpro
2016-11-16 08:49:15 +09:00
parent 9a275fb530
commit 2f164da41c
2 changed files with 3 additions and 3 deletions

View File

@ -49,8 +49,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$caid1 = $caid2 = $caid3 = $caid4 = '';
$caid1 = substr($row['ca_id'],0,2);
$row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '$caid1' ");
$cate1 = $row2['ca_name'];
$row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '$caid1' ");
$cate1 = $row2['ca_name'];
if (strlen($row['ca_id']) >= 8) {
$caid4 = substr($row['ca_id'],0,8);

View File

@ -49,7 +49,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$caid1 = $caid2 = $caid3 = $caid4 = '';
$caid1 = substr($row['ca_id'],0,2);
$row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '$caid1' ");
$row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '$caid1' ");
$cate1 = $row2['ca_name'];
if (strlen($row['ca_id']) >= 8) {