사이트는 swj.co.kr 입니다
검색에 규격으로 검색하면 찾아내지못합니다
어떨때는 또 찾아내기도 합니다
아래 소스에 문제가 없을듯한데 어느 부분을 손을 데야 할지 .......도와주세요
..................상단생략.......................
<%
sel_sch = request("sel_sch")
sel_sch2 = request("sel_sch2")
sel_comp_code = request("comp_code")
'이전페이지 , 다음페이지....
'이 부분은 밑에 처리되었다...
'하이퍼링크로 이전페이지 다음페이지 한 부분에 가보면 있다...
session("CurrentPage") = 1
'이 부분은 페이지로 직접 접근하는 부분이다.
If Request.QueryString("GoTopage") <> "" then
session("CurrentPage") = Request.QueryString("GoTopage")
else
end If
If sel_sch2 = "" Then '검색어가 없다면
If sel_sch = "no1" Then '상품명으로 검색한거라면
If sel_comp_code = "" Then '회사코드가없으면
SQL = "select * from product where pr_name like '%" & sel_sch2 & "%' and chulryuk='y' order by pr_code"
else '회사코드도 포함이라면
SQL = "select * from product where pr_name like '%" & sel_sch2 & "%' and chulryuk='y' and pr_comp like '%" & sel_comp_code & "%' order by pr_code"
end if
else '규격코드로 검색한거라면
If sel_comp_code = "" Then '회사코드가없으면
SQL = "select * from product where pr_vol like '%" & sel_sch2 & "%' and chulryuk='y' order by pr_code"
else '회사코드도 포함이라면
SQL = "select * from product where pr_vol like '%" & sel_sch2 & "%' and chulryuk='y' and pr_comp like '%" & sel_comp_code & "%' order by pr_code"
end if
end if
else '정상적인 검색이라면
If sel_sch = "no1" Then '상품명으로 검색한거라면
If sel_comp_code = "" Then '회사코드가없으면
SQL = "select * from product where pr_vol like '%" & sel_sch2 & "%' and chulryuk='y' order by pr_code"
else '회사코드도 포함이라면
SQL = "select * from product where pr_vol like '%" & sel_sch2 & "%' and chulryuk='y' and pr_comp like '%" & sel_comp_code & "%' order by pr_code"
end if
else '규격코드로 검색한거라면
If sel_comp_code = "" Then '회사코드가없으면
SQL = "select * from product where pr_name like '%" & sel_sch2 & "%' and chulryuk='y' order by pr_code"
else '회사코드도 포함이라면
SQL = "select * from product where pr_name like '%" & sel_sch2 & "%' and chulryuk='y' and pr_comp like '%" & sel_comp_code & "%' order by pr_code"
end if
end if
end If
Set Grs = Server.CreateObject("ADODB.Recordset")
Grs.pagesize = 30
Grs.Open SQL,objconn,1
TotCount_search = Grs.RecordCount
if Grs.BOF or Grs.EOF Then
%>
<script language='javascript'>
alert('검색에 부합하는 상품이 없습니다.')
history.back();
</script>
<%
response.end
else
sql_f = "select comp_code,comp_name from company where comp_code = '" & Grs("pr_comp") & "'"
set rs_com_f = objConn.Execute (sql_f)
End if
%>
<tr>
<td width="689" align="left" valign="middle" height="31"> <p style='margin-left:30px; margin-right:5px;'> <font color="#495766"> <%=rs_com_f("comp_name")%> 회사에 대해 검색어 : <b><%=sel_sch2%></b>
(총 <%=TotCount_search%> 개의 항목을 검색했습니다)</font>
</p></td>
</tr>
<tr>
<td width="689" align="center" valign="top">
<table border="0" width="560" align=center cellspacing='0' cellpadding='0'>
<tr>
<td align='center' valign='top'>
<img src='/swshop/images/sub_05.gif' border='0' align='absmiddle'>
</tD>
</tR>
</table>
<!-- 탑 부분 인클루드 종료 -->
<table border="0" width="650" align=center cellspacing='0' cellpadding='0'>
<!-- 제품리스트 시작 -->
<tr>
<td width="689" align="center" valign="top">
<%
if Grs.BOF or Grs.EOF then
%>
<br><br>
검색된 상품이 없습니다.<br>
<br><br>
<%
response.End
else
Grs.absolutepage = session("CurrentPage")
session("pagecount")=Grs.pagecount
%>
.........하단생략...............
검색에 규격으로 검색하면 찾아내지못합니다
어떨때는 또 찾아내기도 합니다
아래 소스에 문제가 없을듯한데 어느 부분을 손을 데야 할지 .......도와주세요
..................상단생략.......................
<%
sel_sch = request("sel_sch")
sel_sch2 = request("sel_sch2")
sel_comp_code = request("comp_code")
'이전페이지 , 다음페이지....
'이 부분은 밑에 처리되었다...
'하이퍼링크로 이전페이지 다음페이지 한 부분에 가보면 있다...
session("CurrentPage") = 1
'이 부분은 페이지로 직접 접근하는 부분이다.
If Request.QueryString("GoTopage") <> "" then
session("CurrentPage") = Request.QueryString("GoTopage")
else
end If
If sel_sch2 = "" Then '검색어가 없다면
If sel_sch = "no1" Then '상품명으로 검색한거라면
If sel_comp_code = "" Then '회사코드가없으면
SQL = "select * from product where pr_name like '%" & sel_sch2 & "%' and chulryuk='y' order by pr_code"
else '회사코드도 포함이라면
SQL = "select * from product where pr_name like '%" & sel_sch2 & "%' and chulryuk='y' and pr_comp like '%" & sel_comp_code & "%' order by pr_code"
end if
else '규격코드로 검색한거라면
If sel_comp_code = "" Then '회사코드가없으면
SQL = "select * from product where pr_vol like '%" & sel_sch2 & "%' and chulryuk='y' order by pr_code"
else '회사코드도 포함이라면
SQL = "select * from product where pr_vol like '%" & sel_sch2 & "%' and chulryuk='y' and pr_comp like '%" & sel_comp_code & "%' order by pr_code"
end if
end if
else '정상적인 검색이라면
If sel_sch = "no1" Then '상품명으로 검색한거라면
If sel_comp_code = "" Then '회사코드가없으면
SQL = "select * from product where pr_vol like '%" & sel_sch2 & "%' and chulryuk='y' order by pr_code"
else '회사코드도 포함이라면
SQL = "select * from product where pr_vol like '%" & sel_sch2 & "%' and chulryuk='y' and pr_comp like '%" & sel_comp_code & "%' order by pr_code"
end if
else '규격코드로 검색한거라면
If sel_comp_code = "" Then '회사코드가없으면
SQL = "select * from product where pr_name like '%" & sel_sch2 & "%' and chulryuk='y' order by pr_code"
else '회사코드도 포함이라면
SQL = "select * from product where pr_name like '%" & sel_sch2 & "%' and chulryuk='y' and pr_comp like '%" & sel_comp_code & "%' order by pr_code"
end if
end if
end If
Set Grs = Server.CreateObject("ADODB.Recordset")
Grs.pagesize = 30
Grs.Open SQL,objconn,1
TotCount_search = Grs.RecordCount
if Grs.BOF or Grs.EOF Then
%>
<script language='javascript'>
alert('검색에 부합하는 상품이 없습니다.')
history.back();
</script>
<%
response.end
else
sql_f = "select comp_code,comp_name from company where comp_code = '" & Grs("pr_comp") & "'"
set rs_com_f = objConn.Execute (sql_f)
End if
%>
<tr>
<td width="689" align="left" valign="middle" height="31"> <p style='margin-left:30px; margin-right:5px;'> <font color="#495766"> <%=rs_com_f("comp_name")%> 회사에 대해 검색어 : <b><%=sel_sch2%></b>
(총 <%=TotCount_search%> 개의 항목을 검색했습니다)</font>
</p></td>
</tr>
<tr>
<td width="689" align="center" valign="top">
<table border="0" width="560" align=center cellspacing='0' cellpadding='0'>
<tr>
<td align='center' valign='top'>
<img src='/swshop/images/sub_05.gif' border='0' align='absmiddle'>
</tD>
</tR>
</table>
<!-- 탑 부분 인클루드 종료 -->
<table border="0" width="650" align=center cellspacing='0' cellpadding='0'>
<!-- 제품리스트 시작 -->
<tr>
<td width="689" align="center" valign="top">
<%
if Grs.BOF or Grs.EOF then
%>
<br><br>
검색된 상품이 없습니다.<br>
<br><br>
<%
response.End
else
Grs.absolutepage = session("CurrentPage")
session("pagecount")=Grs.pagecount
%>
.........하단생략...............
댓글 1개
17년 전
직접 디비에 접속하셔서
query를 실행해 보세요.
query를 실행해 보세요.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8230 | 9년 전 | 113 | ||
| 8229 | 9년 전 | 108 | ||
| 8228 |
커네드커네드
|
9년 전 | 154 | |
| 8227 | 9년 전 | 187 | ||
| 8226 | 9년 전 | 206 | ||
| 8225 | 9년 전 | 188 | ||
| 8224 | 9년 전 | 181 | ||
| 8223 | 9년 전 | 158 | ||
| 8222 |
|
9년 전 | 238 | |
| 8221 | 9년 전 | 141 | ||
| 8220 | 9년 전 | 171 | ||
| 8219 | 9년 전 | 134 | ||
| 8218 | 9년 전 | 187 | ||
| 8217 |
star3840
|
9년 전 | 156 | |
| 8216 | 9년 전 | 220 | ||
| 8215 | 9년 전 | 173 | ||
| 8214 | 9년 전 | 266 | ||
| 8213 | 9년 전 | 222 | ||
| 8212 | 9년 전 | 138 | ||
| 8211 | 9년 전 | 306 | ||
| 8210 | 9년 전 | 314 | ||
| 8209 | 9년 전 | 383 | ||
| 8208 | 9년 전 | 280 | ||
| 8207 | 9년 전 | 275 | ||
| 8206 |
|
9년 전 | 237 | |
| 8205 | 9년 전 | 220 | ||
| 8204 | 9년 전 | 191 | ||
| 8203 | 9년 전 | 270 | ||
| 8202 | 9년 전 | 187 | ||
| 8201 | 9년 전 | 228 | ||
| 8200 | 9년 전 | 226 | ||
| 8199 | 9년 전 | 252 | ||
| 8198 | 9년 전 | 218 | ||
| 8197 | 9년 전 | 210 | ||
| 8196 | 9년 전 | 601 | ||
| 8195 | 9년 전 | 210 | ||
| 8194 | 9년 전 | 327 | ||
| 8193 | 9년 전 | 215 | ||
| 8192 | 9년 전 | 248 | ||
| 8191 | 9년 전 | 196 | ||
| 8190 | 9년 전 | 194 | ||
| 8189 | 9년 전 | 247 | ||
| 8188 | 9년 전 | 186 | ||
| 8187 | 9년 전 | 190 | ||
| 8186 | 9년 전 | 193 | ||
| 8185 | 9년 전 | 365 | ||
| 8184 | 9년 전 | 149 | ||
| 8183 | 9년 전 | 368 | ||
| 8182 | 9년 전 | 218 | ||
| 8181 | 9년 전 | 181 | ||
| 8180 | 9년 전 | 755 | ||
| 8179 | 9년 전 | 528 | ||
| 8178 | 9년 전 | 376 | ||
| 8177 |
kiplayer
|
9년 전 | 384 | |
| 8176 | 9년 전 | 411 | ||
| 8175 | 9년 전 | 284 | ||
| 8174 | 9년 전 | 292 | ||
| 8173 | 9년 전 | 383 | ||
| 8172 | 9년 전 | 250 | ||
| 8171 | 9년 전 | 227 | ||
| 8170 | 9년 전 | 341 | ||
| 8169 |
커네드커네드
|
9년 전 | 302 | |
| 8168 | 9년 전 | 370 | ||
| 8167 | 9년 전 | 369 | ||
| 8166 | 9년 전 | 278 | ||
| 8165 | 9년 전 | 216 | ||
| 8164 | 9년 전 | 356 | ||
| 8163 | 9년 전 | 343 | ||
| 8162 | 9년 전 | 351 | ||
| 8161 | 9년 전 | 364 | ||
| 8160 |
|
9년 전 | 554 | |
| 8159 | 9년 전 | 492 | ||
| 8158 | 9년 전 | 305 | ||
| 8157 | 9년 전 | 425 | ||
| 8156 | 9년 전 | 307 | ||
| 8155 | 9년 전 | 300 | ||
| 8154 |
00년생용띠
|
9년 전 | 642 | |
| 8153 | 9년 전 | 282 | ||
| 8152 |
|
9년 전 | 460 | |
| 8151 | 9년 전 | 457 | ||
| 8150 | 9년 전 | 563 | ||
| 8149 |
Jangfolk
|
9년 전 | 410 | |
| 8148 | 9년 전 | 228 | ||
| 8147 | 9년 전 | 428 | ||
| 8146 | 9년 전 | 501 | ||
| 8145 | 9년 전 | 451 | ||
| 8144 | 9년 전 | 416 | ||
| 8143 | 9년 전 | 250 | ||
| 8142 | 9년 전 | 476 | ||
| 8141 | 9년 전 | 424 | ||
| 8140 | 9년 전 | 974 | ||
| 8139 | 9년 전 | 324 | ||
| 8138 |
전갈자리남자
|
9년 전 | 433 | |
| 8137 | 9년 전 | 462 | ||
| 8136 | 9년 전 | 798 | ||
| 8135 |
|
9년 전 | 833 | |
| 8134 |
PlayPixel
|
9년 전 | 569 | |
| 8133 |
|
9년 전 | 489 | |
| 8132 | 9년 전 | 505 | ||
| 8131 | 9년 전 | 872 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기