suggest_search.php

Ҵ   
   ȸ 6466  

<?
include_once("./_common.php");

header("Content-Type:text/xml;");
echo "<?xml version=\"1.0\" encoding=\"$g4[charset]\"?>\n";
 
if (iconv("utf-8", "utf-8", $q) == $q) // $q의 코드를 바꾸는 것인데... $q의 출처??
    $q = iconv("utf-8", "cp949", $q);
echo "<items>\n";
if ($q) {
    $any = "";
    if ($like)
        $any = "%";
   
    $sql = " select pp_word, count(*) as cnt from $g4[popular_table] ";
    $sql .= " where 1 ";
    $sql .= " and pp_word like '".$any.$q."%' ";
    $sql .= " group by pp_word ";
    $sql .= " order by cnt desc ";
    $sql .= " limit 15 ";
    $result = sql_query($sql);
    for($i=0;$row=sql_fetch_array($result);$i++) {
        if ($i>0)
            $javascript_object .= ",";
        $s = stripslashes(strip_tags($row[pp_word]));
        $s = str_replace("[", "", $s);
        $s = str_replace("]", "", $s);
        $s = str_replace("\n", "", $s);
        $s = str_replace("\r", "", $s);
        //$str = iconv("cp949", "utf-8", $s);
        $str = $s;
        echo "<item>$str</item>\n";
    }
}
echo "</items>";
?>
- opencode.co.kr -


Page 1/2
     
2015-11   87136   Ҵ
2015-09   103978   Ҵ
2016-08   70442   Ҵ
2016-07   84600   Ҵ
2018-06   50473   Ҵ
2008-10   10789   Ҵ
2007-09   8852   Ҵ
2007-09   9372   Ҵ
2007-05   9118   Ҵ
2007-05   6467   Ҵ
2007-05   7448   Ҵ
2007-05   11647   Ҵ
2007-05   8948   Ҵ
2007-05   7618   Ҵ
2007-05   7892   Ҵ
2007-05   7450   Ҵ
2007-05   6813   Ҵ
2007-05   6482   Ҵ
2007-05   6289   Ҵ
2007-05   9051   Ҵ
2007-05   8168   Ҵ
2007-05   7108   Ҵ
2007-05   7694   Ҵ
2007-05   9948   Ҵ
2007-05   6095   Ҵ