[제나플러스] 회원멤버 이름 검색시 앞쪽부터 검색되는 부분 수정
본문
회원리스트에서 멤버이름을 검색해 보면 앞부터 2자리만 검색이 됩니다..
앞뒤 상관없이 2자리 검색하도록 수정합니다..
adm/zenaplus/member_list.php
******************
$sql_search = " where (1) ";
if ($stx) {
$sql_search .= " and ( ";
switch ($sfl) {
case "mb_point" :
$sql_search .= " ($sfl >= '$stx') ";
break;
case "mb_level" :
$sql_search .= " ($sfl = '$stx') ";
break;
case "mb_tel" :
case "mb_hp" :
$sql_search .= " ($sfl like '%$stx') ";
break;
case "mb_name" :
$sql_search .= " ($sfl like '%$stx%') ";
break;
default :
$sql_search .= " ($sfl like '$stx%') ";
break;
}
$sql_search .= " ) ";
}
앞뒤 상관없이 2자리 검색하도록 수정합니다..
adm/zenaplus/member_list.php
******************
$sql_search = " where (1) ";
if ($stx) {
$sql_search .= " and ( ";
switch ($sfl) {
case "mb_point" :
$sql_search .= " ($sfl >= '$stx') ";
break;
case "mb_level" :
$sql_search .= " ($sfl = '$stx') ";
break;
case "mb_tel" :
case "mb_hp" :
$sql_search .= " ($sfl like '%$stx') ";
break;
case "mb_name" :
$sql_search .= " ($sfl like '%$stx%') ";
break;
default :
$sql_search .= " ($sfl like '$stx%') ";
break;
}
$sql_search .= " ) ";
}
추천0
댓글목록 0
등록된 댓글이 없습니다.