k

또다른 질문 하나 더..... 메뉴 관련????

· 20년 전 · 1632
답변대로 하니까 이런 오류가 납니다.

즉, head.php파일에서 그룹별 게시판 링크 처리를 토대로 했습니다만, 이런 오류가 납니다.

select * from where gr_id = 'community' order by bo_table

1064 : 'SQL 구문에 오류가 있습니다.' 에러 같읍니다. ('where gr_id = 'community' order by bo_table' 명령어 라인 1)

error file : /engcon/bbs/board.php



------------------------------------------------------------------------------------------

그럼 작업한 부분을 보여드리겠습니다.


-------- 작업한 소스 부분 (head.php 파일) -------


<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");

//print_r2(get_defined_constants());

// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.

$table_width = 1000;
?>


<!-- 상단 로고 및 버튼 및 플래쉬 이미지 시작 -->
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="36">
<table width="100%" height="36" border="0" cellpadding="0" cellspacing="0" background="http://kimgeun.mireene.com/html/images/main_img.jpg">
<? if (!$member[mb_id]) { ?>
<!-- 로그인 이전 -->
<tr>
<td align="center" style="padding-left:631px;padding-top:10px;"><a href="/"><img src="http://kimgeun.mireene.com/html/images/home_img.gif" width="43" height="16" border="0"></a>&nbsp;<img src="http://kimgeun.mireene.com/html/images/topline_img.gif" width="1" height="12">&nbsp;<a href="<?=$g4[bbs_path]?>/login.php?url=<?=$urlencode?>"><img src="http://kimgeun.mireene.com/html/images/login_img.gif" width="43" height="16" border="0"></a>&nbsp;<img src="http://kimgeun.mireene.com/html/images/topline_img.gif" width="1" height="12">&nbsp;<img src="http://kimgeun.mireene.com/html/images/contact_img.gif" width="48" height="16"></td>
</tr>
<? } else { ?>
<!-- 로그인 이후 -->
<tr>
<td align="center" style="padding-left:631px;padding-top:6px;"><a href="/"><img src="http://kimgeun.mireene.com/html/images/home_img.gif" width="43" height="16" border="0"></a>&nbsp;<img src="http://kimgeun.mireene.com/html/images/topline_img.gif" width="1" height="12">&nbsp;<a href="<?=$g4[bbs_path]?>/logout.php"><img src="http://kimgeun.mireene.com/html/images/logout_img.gif" width="53" height="16" border="0"></a>&nbsp;<img src="http://kimgeun.mireene.com/html/images/topline_img.gif" width="1" height="12">&nbsp;<img src="http://kimgeun.mireene.com/html/images/contact_img.gif" width="48" height="16"></td>

</tr>
<? } ?>
</table>
</td>
</tr>
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1000" height="378" hspace="0" vspace="0">
<param name="movie" value="http://kimgeun.mireene.com/html/images/main_image.swf">
<param name="quality" value="high">
<embed src="http://kimgeun.mireene.com/html/images/main_image.swf" width="1000" height="378" hspace="0" vspace="0" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object></td>
</tr>
</table>
<!-- 상단 로고 및 버튼 버튼 및 플래쉬 이미지 끝 -->





<style type="text/css">
#middiv {
width:<?=$table_width?>px;
position:relative;
margin:0px auto;
vertical-align:top;
float:left;
}
#middiv #mleft { width:220px; float:left; padding:0 0 0 43; }
#middiv #mright { width:683px; float:left; padding:0 0 0 15; }
body { background-color : #FEF0FF }
</style>


<table width='<?=$table_width?>' cellpadding=0 cellspacing=0>
<tr>
<td width=43></td>
<td width=279 valign=top>
<div style='height:12px;'></div>
<?=outlogin("basic"); // 외부 로그인 ?>

<div style='height:10px;'></div>
<?

if ($board[bo_table]=='basic' || $board[bo_table]=='im' || $board[bo_table]=='high'){?>
<table border="0" width="100%" cellpadding="0" cellspacing="0" >
<tr>
<td>
<? $sql = " select * from $cfg[table_board] where gr_id = 'edu' order by bo_table ";
$bo = sql_query($sql);
while ($row = mysql_fetch_array($bo)) {
echo "<a href='./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$row[bo_table]'> $row[bo_subject]</a>";}
?>
</td>
</tr>
</table>

<? }
else if ($board[bo_table]=='notice' || $board[bo_table]=='free' || $board[bo_table]=='qna'){?>
<table border="0" width="100%" cellpadding="0" cellspacing="0" >
<tr>
<td>
<? $sql = " select * from $cfg[table_board] where gr_id = 'community' order by bo_table ";
$bo = sql_query($sql);
while ($row = mysql_fetch_array($bo)) {
echo "<a href='./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$row[bo_table]'> $row[bo_subject]</a>";}
?>
</td>
</tr>
</table>
<? }else{ ?>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
????? ?? ??
</td>
</tr>
</table>
<? } ?>
<?=poll("basic"); // 설문조사 ?>

<div style='height:10px;'></div>

<?=visit("basic"); // 방문자수 ?>

<div style='height:10px;'></div>

<?=connect(); // 현재 접속자수 ?>
</td>
<td width=683 valign=top>
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
20년 전 조회 2,164
20년 전 조회 2,619
20년 전 조회 1,593
20년 전 조회 2,212
20년 전 조회 2,114
20년 전 조회 1,638
20년 전 조회 2,018
20년 전 조회 2,037
20년 전 조회 1,644
20년 전 조회 1,633
20년 전 조회 3,619
20년 전 조회 1,692
20년 전 조회 2,224
20년 전 조회 2,294
20년 전 조회 1,714
20년 전 조회 1,978
20년 전 조회 2,341
20년 전 조회 1,631
20년 전 조회 2,322
20년 전 조회 3,008
🐛 버그신고