경로 및 전체테이블명 변경
This commit is contained in:
@ -52,7 +52,7 @@ else {
|
||||
$send_cost = (int)$send_cost_list[0];
|
||||
}
|
||||
|
||||
$sql =" select * from $g4[yc4_item_table] where it_use = '1' order by ca_id";
|
||||
$sql =" select * from $g4[shop_item_table] where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -61,24 +61,24 @@ 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 $g4[yc4_category_table] where ca_id = '$caid1' ");
|
||||
$row2 = sql_fetch(" select ca_name from $g4[shop_category_table] where ca_id = '$caid1' ");
|
||||
$cate1 = $row2[ca_name];
|
||||
|
||||
if (strlen($row[ca_id]) >= 8) {
|
||||
$caid4 = substr($row[ca_id],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from $g4[yc4_category_table] where ca_id = '$caid4' ");
|
||||
$row2 = sql_fetch(" select ca_name from $g4[shop_category_table] where ca_id = '$caid4' ");
|
||||
$cate4 = $row2[ca_name];
|
||||
}
|
||||
|
||||
if (strlen($row[ca_id]) >= 6) {
|
||||
$caid3 = substr($row[ca_id],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from $g4[yc4_category_table] where ca_id = '$caid3' ");
|
||||
$row2 = sql_fetch(" select ca_name from $g4[shop_category_table] where ca_id = '$caid3' ");
|
||||
$cate3 = $row2[ca_name];
|
||||
}
|
||||
|
||||
if (strlen($row[ca_id]) >= 4) {
|
||||
$caid2 = substr($row[ca_id],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from $g4[yc4_category_table] where ca_id = '$caid2' ");
|
||||
$row2 = sql_fetch(" select ca_name from $g4[shop_category_table] where ca_id = '$caid2' ");
|
||||
$cate2 = $row2[ca_name];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user