[제나플러스] utf-8 사용시 검색부분 // 들어 가는 현상
본문
common.php
if (isset($sca)) {
if ($g4['charset'] != 'UTF-8') {
$sca = mysql_real_escape_string($sca);
}
$qstr .= '&sca=' . urlencode($sca);
}
if (isset($sfl)) {
if ($g4['charset'] != 'UTF-8') {
$sfl = mysql_real_escape_string($sfl);
}
$qstr .= '&sfl=' . urlencode($sfl); // search field (검색 필드)
}
if (isset($stx)) { // search text (검색어)
if ($g4['charset'] != 'UTF-8') {
$stx = mysql_real_escape_string($stx);
}
$qstr .= '&stx=' . urlencode($stx);
}
if (isset($sst)) {
if ($g4['charset'] != 'UTF-8') {
$sst = mysql_real_escape_string($sst);
}
$qstr .= '&sst=' . urlencode($sst); // search sort (검색 정렬 필드)
}
if (isset($sca)) {
if ($g4['charset'] != 'UTF-8') {
$sca = mysql_real_escape_string($sca);
}
$qstr .= '&sca=' . urlencode($sca);
}
if (isset($sfl)) {
if ($g4['charset'] != 'UTF-8') {
$sfl = mysql_real_escape_string($sfl);
}
$qstr .= '&sfl=' . urlencode($sfl); // search field (검색 필드)
}
if (isset($stx)) { // search text (검색어)
if ($g4['charset'] != 'UTF-8') {
$stx = mysql_real_escape_string($stx);
}
$qstr .= '&stx=' . urlencode($stx);
}
if (isset($sst)) {
if ($g4['charset'] != 'UTF-8') {
$sst = mysql_real_escape_string($sst);
}
$qstr .= '&sst=' . urlencode($sst); // search sort (검색 정렬 필드)
}
추천0
댓글목록 0
등록된 댓글이 없습니다.