질문이 있는데요 정보
질문이 있는데요
본문
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;
}
?>
일은 여기 떠넘기고 스타하러 ㄱㄱㄱㄱ
댓글 전체
맹글어봐야긋네요