옵

질문이 있는데요

· 2009-01-20 (화) 00:59:46 · 1298 · 1

http://ilovewonju.co.kr/bbs/board.php?bo_table=22_02
여기에 등록한 아파트정보를 이름이 같을경우
http://ilovewonju.co.kr/bbs/board.php?bo_table=21_01
요기 매물정보로 가져왔거든요 근데 문제는 띄어쓰기

무실주공3차아파트를 무실 주공 3차 아파트 라고 써도 가져올수 있는 방법좀 알려주세요

스킨은 제작완료하는데로 공개할께요 ^^

lib는 요렇게 간단하게 만들었어요
if (!defined('_GNUBOARD_')) exit;

// 최신글 추출
function latest_apt($skin_dir="", $bo_table, $rows=10, $subject_len=40, $wr="")
{
    global $config;
    global $g4;

    if ($skin_dir)
        $latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
    else
        $latest_skin_path = "$g4[path]/skin/latest/$config[cf_latest_skin]";

    $list = array();

    $sql = " select * from {$g4[board_table]} where bo_table = '$bo_table'";
 
    $board = sql_fetch($sql);

    $tmp_write_table = $g4[write_prefix] . $bo_table; // 게시판 테이블 전체이름
 // wr 로 랜덤정렬

 $sql = "select * from $g4[write_prefix]$bo_table where wr_subject='$wr' order by rand() limit 0, $rows ";

    //explain($sql);
    $result = sql_query($sql);
    for ($i=0; $row = sql_fetch_array($result); $i++)
        $list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
   
    ob_start();
    include "$latest_skin_path/latest.skin.php";
    $content = ob_get_contents();
    ob_end_clean();

    return $content;
}
?>



일은 여기 떠넘기고 스타하러 ㄱㄱㄱㄱ

|

댓글 1개

스타 하고왔는데 답이읍네 ㅜ.ㅜ
맹글어봐야긋네요
댓글을 작성하시려면 로그인이 필요합니다.

자유게시판

202,972건
+
제목 글쓴이 날짜 조회
09-01-20 조회 1,451
09-01-20 조회 1,261
09-01-20 조회 1,450
09-01-20 조회 1,246
09-01-20 조회 1,238
09-01-20 조회 1,246
09-01-20 조회 1,214
09-01-20 조회 1,340
09-01-20 조회 1,212
09-01-20 조회 1,236
09-01-20 조회 1,237
09-01-20 조회 1,449
09-01-20 조회 1,187
09-01-20 조회 1,256
09-01-20 조회 1,198
09-01-20 조회 1,299
09-01-19 조회 1,801
09-01-19 조회 1,430
09-01-19 조회 2,079
09-01-19 조회 1,295