질문이 있는데요 > 십년전오늘

십년전오늘

10년전 추억의 책장을 넘기며

질문이 있는데요 정보

질문이 있는데요

본문

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;
}
?>



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

댓글 전체

전체 135,051
십년전오늘 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT