답변 3개
search.php 의 다음 코드 부분을 다음과 같이 수정하면 될 듯 합니다.
</p>
<p>$sql_where = " where " . implode(" and ", $where);</p>
<p>
->
</p>
<p>$sql_where = " where " . implode(" and ", $where);</p>
<p>if ($_SERVER['QUERY_STRING'] == "") // 검색 조건을 주지 않은 경우에는
$sql_where = " where 0 ";</p>
<p>
댓글을 작성하려면 로그인이 필요합니다.
검색시 count($where) 가 1이상 나오는 거을 이용하여
skin/shop/basic/ 에 shop.skin.php 를 이용하시면
56라인에
1){?>
-
{$row['ca_name']} (".$row['cnt'].")\n";
$total_cnt += $row['cnt'];
}
echo '
- 전체분류 ('.$total_cnt.') '.PHP_EOL; ?>
리스트 나오는 부분을 if(count($where)>1){ 로 둘러싸 주시면 됩니다
if(count($where)>1){ $list_file = G5_SHOP_SKIN_PATH.'/'.$default['de_search_list_skin']; if (file_exists($list_file)) { define('G5_SHOP_CSS_URL', G5_SHOP_SKIN_URL); $list = new item_list($list_file, $default['de_search_list_mod'], $default['de_search_list_row'], $default['de_search_img_width'], $default['de_search_img_height']); $list->set_query(" select * $sql_common $sql_where {$order_by} limit $from_record, $items "); $list->set_is_page(true); $list->set_view('it_img', true); $list->set_view('it_id', true); $list->set_view('it_name', true); $list->set_view('it_basic', true); $list->set_view('it_cust_price', false); $list->set_view('it_price', true); $list->set_view('it_icon', true); $list->set_view('sns', true); echo $list->run(); } else { $i = 0; $error = '
'.$list_file.' 파일을 찾을 수 없습니다. 관리자에게 알려주시면 감사하겠습니다.
'; } if ($i==0) { echo '댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인