통합검색시 빈칸검색에 대해서 질문드려요 정보
통합검색시 빈칸검색에 대해서 질문드려요본문
안녕하세요 오랜만에 질문드리네요
다름이 아니라 통합검색시 작성한 글에 맞게 정확히 적어야지만 현재 검색이 되는데
어떻게 해야지 "아버지가 가방에 들어가신다" 라고 작성한 게시물에
아버지가가방에들어가신다 라고 작성해도 검색이 되게 하나요
아무리 검색하고 나온대로 수정해봐도 도저히 안되네요 ㅠ
답변좀 부탁드리겠습니다.
현재 스킨폴더 서치 파일인데요
어떻게 수정해야할까요
<?
$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>
어디를 어떻게 수정해야 될까요
죄송하지만 초보라 자세히좀 설명좀 부탁드릴게요ㅠ
부탁드립니다.
다름이 아니라 통합검색시 작성한 글에 맞게 정확히 적어야지만 현재 검색이 되는데
어떻게 해야지 "아버지가 가방에 들어가신다" 라고 작성한 게시물에
아버지가가방에들어가신다 라고 작성해도 검색이 되게 하나요
아무리 검색하고 나온대로 수정해봐도 도저히 안되네요 ㅠ
답변좀 부탁드리겠습니다.
현재 스킨폴더 서치 파일인데요
어떻게 수정해야할까요
<?
$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>
어디를 어떻게 수정해야 될까요
죄송하지만 초보라 자세히좀 설명좀 부탁드릴게요ㅠ
부탁드립니다.
댓글 전체

하시려는게 디비데이타에 대한 공백을 없애려고 하시는 거라면
mysql 의 REPLACE 함수를 보시기 바랍니다
mysql 의 REPLACE 함수를 보시기 바랍니다