검색에 상품코드를 추가하는 방법
shop/search.php 를
$sql_common = " from $g4[yc4_item_table] a,
$g4[yc4_category_table] b
where a.ca_id = b.ca_id
and ( a.it_id like '$search_str%' or
a.it_name like '%$search_str%' or
a.it_basic like '%$search_str%' or
a.it_explan like '%$search_str%' )
and a.it_use = 1
and b.ca_use = 1 ";
수정하시면 됩니다.
$sql_common = " from $g4[yc4_item_table] a,
$g4[yc4_category_table] b
where a.ca_id = b.ca_id
and ( a.it_id like '$search_str%' or
a.it_name like '%$search_str%' or
a.it_basic like '%$search_str%' or
a.it_explan like '%$search_str%' )
and a.it_use = 1
and b.ca_use = 1 ";
수정하시면 됩니다.
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 1개