테스트 사이트 - 개발 중인 베타 버전입니다

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

츄우우웅 7년 전 조회 2,484

 

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

 

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

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

list.skin.php

 

</p>

<p><select></p>

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

<p><input></input></p>

<p>

댓글을 작성하려면 로그인이 필요합니다.

답변 3개

채택된 답변
+20 포인트
o
7년 전

<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>

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

o
7년 전

보내드린 내용은  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">을 넣어 주시면 되실듯 합니다

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

츄우우웅

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

 

 

</p>

<p><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></p>

<p>

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인