search.php 질문입니다. 정보
search.php 질문입니다.본문
설명드리기 참 어렵네요. ㅡㅡ;;
A, B 두게시판이 있습니다.
어떤 낱말를 검색해서 통합검색결과를 보게되면
* A 게시판 (24)
* B 게시판 (18)
일단 이렇게 나옵니다.
여기서 * A 게시판 (24) 를 클릭하게 되면
* 전체게시판검색
* A 게시판(24)
이렇게 나옵니다.
/////////////////////////////
제가 바꾸고 싶은것은
* A 게시판 (24) 를 클릭해도 처음처럼
* A 게시판 (24)
* B 게시판 (18)
이렇게 나오게 하려면 어떻게 해야 하나요?
아 감을 좀 잡아주실 고수분 도와주세요 +_+;;
댓글 전체
bbs/search.php
..
$sql = " select gr_id, bo_table, bo_read_level
from $g4[board_table]
where bo_use_search = '1'
and bo_list_level <= '$member[mb_level]' ";
// and bo_read_level <= '$member[mb_level]' ";
if ($gr_id)
$sql .= " and gr_id = '$gr_id' ";
/*
if ($onetable) // 하나의 게시판만 검색한다면
$sql .= " and bo_table = '$onetable' ";
*/
$sql .= " order by bo_order_search, gr_id, bo_table ";
$result = sql_query($sql);
..
line:141
$k=0;
for ($idx=$table_index; $idx<count($search_table); $idx++)
{
if( $onetable ) if( $onetable != $search_table[$idx] ) continue; // 추가
$sql = " select bo_subject from $g4[board_table] where bo_table = '$search_table[$idx]' ";
..
$sql = " select gr_id, bo_table, bo_read_level
from $g4[board_table]
where bo_use_search = '1'
and bo_list_level <= '$member[mb_level]' ";
// and bo_read_level <= '$member[mb_level]' ";
if ($gr_id)
$sql .= " and gr_id = '$gr_id' ";
/*
if ($onetable) // 하나의 게시판만 검색한다면
$sql .= " and bo_table = '$onetable' ";
*/
$sql .= " order by bo_order_search, gr_id, bo_table ";
$result = sql_query($sql);
..
line:141
$k=0;
for ($idx=$table_index; $idx<count($search_table); $idx++)
{
if( $onetable ) if( $onetable != $search_table[$idx] ) continue; // 추가
$sql = " select bo_subject from $g4[board_table] where bo_table = '$search_table[$idx]' ";
감사합니다.감사합니다. ~(__)~