검색이 안되는데 제목+내용 검색하게할려고 합니다

검색이 안되는데 제목+내용 검색하게할려고 합니다

QA

검색이 안되는데 제목+내용 검색하게할려고 합니다

본문

2944080358_1529504081.5831.png

 

검색이 안되는데 제목+내용 검색하게할려고 합니다...

 

subject , wr_1~12까지 검색 하게 하고싶습니다.

근데 어떻게 해야 검색이 되는지 모르겠습니다...

list.skin.php

 


<select>
<option>제목+내용</option></select>
<input></input>

이 질문에 댓글 쓰기 :

답변 3

<select name="sfl">
<option value="wr_subject||wr_content||wr_1||wr_2||wr_3||wr_4||wr_5||wr_6||wr_7||wr_8||wr_9||wr_10||wr_11||wr_12">제목+내용</option></select>
<input type="text" name="stx" value='<?php echo $stx;?>'></input>

그대로 작성했는데 검색이 안되요...

 

 


<td colspan="5">
                <select name="sfl">
<option value="wr_subject||wr_content||wr_1||wr_2||wr_3||wr_4||wr_5||wr_6||wr_7||wr_8||wr_9||wr_10||wr_11||wr_12">제목+내용</option></select>
<input type="text" name="stx" value='<?php echo $stx;?>'></input>
                    <button type="button" id="btn_submit" class="btn_submit">검색</button>
                    <button type='button' id='reset'>초기화</button>
                    
                    <!--button type="button" id="excel" class="excel" onclick="prInt('excel');" >엑셀저장</button>
                    <button type="button" id="print" class="print" onclick="prInt('pdf');" >인쇄</button-->
                    
                    <?php if ($admin_href) { ?>
                        <button type="button" class="adm" onclick="location.href='<?php echo $admin_href ?>';">관리자</button>
                    <?php } ?>
                    <?php if ($write_href) { ?>
                        <button type="button" class="wri" onclick="location.href='<?php echo $write_href ?>';">글쓰기</button>
                    <?php } ?>
                </td>

보내드린 내용은  wr_subject 에서 stx 값이 있는지 wr_content 에서 stx 값이 있는지 wr_1 에서 stx 값이 있는지 .... 확인하는 내용입니다 

 

아 혹 내용에 sop 값을 보내는 것이 없으면 AND 로 인식합니다 

<input type="text" name="stx" value='<?php echo $stx;?>'></input> 아래에 

<input type="hidden" name="sop" value="or">을 넣어 주시면 되실듯 합니다

답변을 작성하시기 전에 로그인 해주세요.
전체 123,643 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT