검색이 안되는데 제목+내용 검색하게할려고 합니다
본문
검색이 안되는데 제목+내용 검색하게할려고 합니다...
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">을 넣어 주시면 되실듯 합니다
답변을 작성하시기 전에 로그인 해주세요.