list.skin.php
Copy
<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
Copy
if($bo_table == "cscenter") {
$sql_search=" wr_31 between '{$stx4}' and '{$stx5}' and {$sfl} like '%{$stx3}%' ";
}
이렇게 금액 검색값을 뿌리는데... 검색이 잘 안되네요... 제가 틀린 부분이 있는지...
금액이 아니라 날짜로 검색했을때는 잘 되는데... 금액 부분만 안되네요
답변 2개 / 댓글 1개
채택된 답변
+20 포인트
2021-08-11 (수) 12:16:45
Copy
if($bo_table == "cscenter") {
$stx4 = intval($stx4);
$stx5 = intval($stx5);
$sql_search=" (wr_31 between '{$stx4}' and '{$stx5}') and {$sfl} like '%{$stx3}%' ";
}
답변에 대한 댓글 1개
2021-08-11 (수) 14:17:57
wr_31 컬럼 data type을 int로 변경하세요.
답변을 작성하려면 로그인이 필요합니다.