통합검색시 빈칸검색에 대해서 질문드려요

안녕하세요 오랜만에 질문드리네요
다름이 아니라 통합검색시 작성한 글에 맞게 정확히 적어야지만 현재 검색이 되는데
어떻게 해야지 "아버지가 가방에 들어가신다" 라고 작성한 게시물에
아버지가가방에들어가신다 라고 작성해도 검색이 되게 하나요
아무리 검색하고 나온대로 수정해봐도 도저히 안되네요 ㅠ
답변좀 부탁드리겠습니다.
현재 스킨폴더 서치 파일인데요
어떻게 수정해야할까요

<?
$k=0;
if(count($search_table)>0){
for ($idx=$table_index, $k=0; $idx<count($search_table) && $k<$rows; $idx++)
{

//echo "<ul type=circle><li><b>\"<a href='./board.php?bo_table={$search_table[$idx]}&{$search_query}'><u>{$bo_subject[$idx]}</u></a>\"에 대한 통합검색결과 입니다</b></ul>";
$comment_href = "";
for ($i=0; $i<count($list[$idx]) && $k<$rows; $i++, $k++)
{
$popular_s=explode("||",$popular_search);
for($kk=0;$kk<count($popular_s);$kk++){
if($popular_s[$kk]){
$searchsql = " insert into $g4[popular_table] set pp_word = '".$popular_s[$kk]."', pp_date = '$g4[time_ymd]', pp_ip = '$_SERVER[REMOTE_ADDR]',bo_table = '".$search_table[$idx]."' ";
sql_query($searchsql, FALSE);
}
}
$cn_cnt=sql_fetch("select sum(wr_1) as wr_sum,count(wr_id) as wr_cnt from g4_write_".$search_table[$idx]." where wr_parent='".$list[$idx][$i][wr_parent]."' and wr_is_comment=1");

if($cn_cnt[wr_sum]>0){
$chongcham=$cn_cnt[wr_cnt];
$py=$cn_cnt[wr_sum]/$cn_cnt[wr_cnt];
} else {
$py=0;
}
$star_width=round($py,1)*10;

if($search_table[$idx]=="info"){
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="50">"<font color="f46308"><b><?=$list[$idx][$i][subject]?></b></font>"에 대한 통합검색결과 입니다.</td>

어디를 어떻게 수정해야 될까요
죄송하지만 초보라 자세히좀 설명좀 부탁드릴게요ㅠ
부탁드립니다.
|

댓글 1개

하시려는게 디비데이타에 대한 공백을 없애려고 하시는 거라면

mysql 의 REPLACE 함수를 보시기 바랍니다
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
13년 전 조회 1,007
13년 전 조회 1,266
13년 전 조회 1,212
13년 전 조회 1,576
13년 전 조회 791
13년 전 조회 764
13년 전 조회 1,951
13년 전 조회 1,590
13년 전 조회 518
13년 전 조회 811
13년 전 조회 1,500
13년 전 조회 1,611
13년 전 조회 762
13년 전 조회 1,265
13년 전 조회 828
13년 전 조회 1,629
13년 전 조회 1,593
13년 전 조회 1,764
13년 전 조회 1,471
13년 전 조회 1,668