전체검색시 검색결과가 게시판으로 나타나게 할수 있을까요? > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

전체검색시 검색결과가 게시판으로 나타나게 할수 있을까요? 정보

전체검색시 검색결과가 게시판으로 나타나게 할수 있을까요?

본문

제가 아래와 같이 게시판별 검색을 사용하고 있습니다.
여기에 전체검색(게시판4개이며 그룹은 gallery입니다. )을 넣고 싶습니다.
검색시 결과값이 그누의 전체검색 형식이 아니라 아래에 사용한 게시판과 같이 검색내용이 나왔으면 하거든요.
어떠한 방식으로 만들어야 하는지 알려주시면 감사드리겠습니다.

<table width="100%" height="20">
<tr>
<td align=right >
<form name=fsearch method=get style="margin:0px;"  action="<?=$g4[bbs_path]?>/board.php">
<select name="bo_table" align="absmiddle">
<option value="gallery1">갤러리1</option>
<option value="gallery2">갤러리2</option>
<option value="gallery3">갤러리3</option>
<option value="gallery4">갤러리4</option>
</select><input type=hidden name=sfl  value="wr_subject||wr_content">
<input type=hidden name=sop  value="and">
<input type=text size=30 name=stx style="border:#bebebe 1px solid; height:20px; width:200px; background-color:#fff; font-size:12px; font-family:돋움, Dotum; margin:0 0 1 0;">
<input type=image src="<?$g4[path]?>/bbs/image/small_search.gif"  width='40' height='20' border=0 align=absmiddle>
</form>
</td>
</tr>
</table>
  • 복사

( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '176087' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )

1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

error file : /15sir/bbs/board.php