사이트는 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를 실행해 보세요.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7830 | 9년 전 | 396 | ||
| 7829 |
|
9년 전 | 575 | |
| 7828 | 9년 전 | 506 | ||
| 7827 | 9년 전 | 394 | ||
| 7826 | 9년 전 | 405 | ||
| 7825 | 9년 전 | 450 | ||
| 7824 | 9년 전 | 430 | ||
| 7823 | 9년 전 | 344 | ||
| 7822 | 10년 전 | 334 | ||
| 7821 | 10년 전 | 286 | ||
| 7820 | 10년 전 | 330 | ||
| 7819 |
|
10년 전 | 736 | |
| 7818 | 10년 전 | 365 | ||
| 7817 | 10년 전 | 485 | ||
| 7816 | 10년 전 | 384 | ||
| 7815 | 10년 전 | 587 | ||
| 7814 | 10년 전 | 413 | ||
| 7813 | 10년 전 | 352 | ||
| 7812 | 10년 전 | 371 | ||
| 7811 | 10년 전 | 378 | ||
| 7810 | 10년 전 | 534 | ||
| 7809 | 10년 전 | 459 | ||
| 7808 | 10년 전 | 343 | ||
| 7807 | 10년 전 | 384 | ||
| 7806 |
프로그래머7
|
10년 전 | 1315 | |
| 7805 | 10년 전 | 1252 | ||
| 7804 |
zahir1312
|
10년 전 | 758 | |
| 7803 |
|
10년 전 | 1354 | |
| 7802 | 10년 전 | 441 | ||
| 7801 | 10년 전 | 845 | ||
| 7800 | 10년 전 | 1072 | ||
| 7799 | 10년 전 | 523 | ||
| 7798 | 10년 전 | 484 | ||
| 7797 | 10년 전 | 483 | ||
| 7796 | 10년 전 | 322 | ||
| 7795 | 10년 전 | 478 | ||
| 7794 | 10년 전 | 514 | ||
| 7793 | 10년 전 | 1024 | ||
| 7792 | 10년 전 | 430 | ||
| 7791 | 10년 전 | 521 | ||
| 7790 | 10년 전 | 480 | ||
| 7789 |
fbastore
|
10년 전 | 1415 | |
| 7788 | 10년 전 | 514 | ||
| 7787 | 10년 전 | 375 | ||
| 7786 | 10년 전 | 542 | ||
| 7785 | 10년 전 | 550 | ||
| 7784 | 10년 전 | 610 | ||
| 7783 | 10년 전 | 421 | ||
| 7782 | 10년 전 | 464 | ||
| 7781 | 10년 전 | 877 | ||
| 7780 | 10년 전 | 796 | ||
| 7779 | 10년 전 | 763 | ||
| 7778 | 10년 전 | 339 | ||
| 7777 | 10년 전 | 427 | ||
| 7776 | 10년 전 | 432 | ||
| 7775 | 10년 전 | 375 | ||
| 7774 | 10년 전 | 615 | ||
| 7773 | 10년 전 | 362 | ||
| 7772 | 10년 전 | 703 | ||
| 7771 | 10년 전 | 350 | ||
| 7770 | 10년 전 | 629 | ||
| 7769 | 10년 전 | 353 | ||
| 7768 | 10년 전 | 576 | ||
| 7767 | 10년 전 | 1141 | ||
| 7766 | 10년 전 | 466 | ||
| 7765 | 10년 전 | 494 | ||
| 7764 |
잘살아보자
|
10년 전 | 353 | |
| 7763 |
|
10년 전 | 1426 | |
| 7762 |
Tosea
|
10년 전 | 1033 | |
| 7761 | 10년 전 | 620 | ||
| 7760 |
잘살아보자
|
10년 전 | 647 | |
| 7759 |
잘살아보자
|
10년 전 | 472 | |
| 7758 |
잘살아보자
|
10년 전 | 562 | |
| 7757 | 10년 전 | 1213 | ||
| 7756 |
ITBANK
|
10년 전 | 1237 | |
| 7755 | 10년 전 | 1914 | ||
| 7754 | 10년 전 | 1031 | ||
| 7753 | 10년 전 | 857 | ||
| 7752 | 10년 전 | 1367 | ||
| 7751 |
잘살아보자
|
10년 전 | 499 | |
| 7750 |
잘살아보자
|
10년 전 | 456 | |
| 7749 |
잘살아보자
|
10년 전 | 459 | |
| 7748 |
잘살아보자
|
10년 전 | 449 | |
| 7747 |
잘살아보자
|
10년 전 | 549 | |
| 7746 |
잘살아보자
|
10년 전 | 659 | |
| 7745 |
잘살아보자
|
10년 전 | 894 | |
| 7744 |
잘살아보자
|
10년 전 | 403 | |
| 7743 | 10년 전 | 928 | ||
| 7742 |
starbros
|
10년 전 | 812 | |
| 7741 |
잘살아보자
|
10년 전 | 639 | |
| 7740 |
잘살아보자
|
10년 전 | 505 | |
| 7739 |
잘살아보자
|
10년 전 | 447 | |
| 7738 |
잘살아보자
|
10년 전 | 510 | |
| 7737 |
잘살아보자
|
10년 전 | 470 | |
| 7736 |
잘살아보자
|
10년 전 | 489 | |
| 7735 |
잘살아보자
|
10년 전 | 824 | |
| 7734 |
잘살아보자
|
10년 전 | 416 | |
| 7733 |
잘살아보자
|
10년 전 | 520 | |
| 7732 |
잘살아보자
|
10년 전 | 676 | |
| 7731 |
잘살아보자
|
10년 전 | 598 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기