lib\shop.lib.php 부분 질문입니다. 채택완료
https://sir.kr/qa/374818?sfl=mb_id%2C1&lstx=angeleyes
https://sir.kr/bbs/profile.php?mb_id=eyekiss" onclick="return false;" rel="nofollow" target="_blank" title="eyekiss 자기소개">eyekiss님이 알려주신 내용입니다.
============================
lib\shop.lib.php 파일에 아래 구문 추가
253줄 근처에
function set_where($where) {
$this->where = $where;
}
293줄 근처에
if ($this->where) {
$where[] = $this->where;
}
shop\list.php 파일에 132줄 근처에 추가
if($it_brand) {
$list->set_where(" it_brand = '$it_brand' ");
}
$it_brand 변수는 따로 넘겨주어야 합니다.
============================
if($it_name) {
$list->set_where(" it_name = '$it_name' ");
}
두가지 조건을 모두 불러오고 싶어서 이부분을 추가후
http://www.도메인.com/shop/list.php?ca_id=20&it_brand=111&it_name=222
g5_shop_item_table의 it_brand=111 하고 it_name=222 하고
둘중하나만 불러오면 잘 불러옵니다. 두가지부분 모두 불러오려면 뒤에 하나만 불러 옵니다. 두가지 부분모두 불러오려면 어떻게 해야하나요..
그리고 select * from {$g5['g5_shop_item_table']} where..... 이부분은 어디에 있나요?
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인