금액검색.....
본문
list.skin.php
<input type="text" name="stx4" value="<?php echo stripslashes($stx4) ?>" id="stx4" class="frm_input numMoney text_r" placeholder="최소 금액">
~
<input type="text" name="stx5" value="<?php echo stripslashes($stx5) ?>" id="stx5" class="frm_input numMoney text_r" placeholder="최대 금액">
list.php
if($bo_table == "cscenter") {
$sql_search=" wr_31 between '{$stx4}' and '{$stx5}' and {$sfl} like '%{$stx3}%' ";
}
이렇게 금액 검색값을 뿌리는데... 검색이 잘 안되네요... 제가 틀린 부분이 있는지...
금액이 아니라 날짜로 검색했을때는 잘 되는데... 금액 부분만 안되네요
!-->!-->
답변 2
if($bo_table == "cscenter") { $stx4 = intval($stx4); $stx5 = intval($stx5); $sql_search=" (wr_31 between '{$stx4}' and '{$stx5}') and {$sfl} like '%{$stx3}%' "; }
wr_31 컬럼 data type을 int로 변경하세요.
답변을 작성하시기 전에 로그인 해주세요.