관련상품 검색 쿼리 수정

This commit is contained in:
chicpro
2013-07-24 18:31:57 +09:00
parent ae4e8da869
commit 02cb135017

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
$sql = " select ca_id, it_id, it_name, it_price
from {$g4['shop_item_table']}
where ca_id like '$ca_id%'
and it_id <> '$it_id'
where it_id <> '$it_id'
and ( ca_id like '$ca_id%' or ca_id2 like '$ca_id%' or ca_id3 like '$ca_id%' )
order by ca_id, it_name ";
$result = sql_query($sql);