관련상품이미지 출력 코드 수정 및 관련상품 정렬순서 필드 추가

This commit is contained in:
chicpro
2013-05-16 16:26:03 +09:00
parent 60a5d6dc58
commit a6701d1f95
5 changed files with 44 additions and 31 deletions

View File

@ -479,13 +479,15 @@ if ($w == "" || $w == "u")
{
$sql = " insert into {$g4['shop_item_relation_table']}
set it_id = '$it_id',
it_id2 = '$it_id2[$i]' ";
it_id2 = '$it_id2[$i]',
ir_no = '$i' ";
sql_query($sql, false);
// 관련상품의 반대로도 등록
$sql = " insert into {$g4['shop_item_relation_table']}
set it_id = '$it_id2[$i]',
it_id2 = '$it_id' ";
it_id2 = '$it_id',
ir_no = '$i' ";
sql_query($sql, false);
}
}