G

특정한 그룹과 그 그룹의 게시판 명만 ?

아래와 같이 했는데 다른 그룹과 그룹 명이 다 나오네요
어떤분의 질답인지 팁엔테크인지 나와있는것을 그룹 id만 바꾸면 특정한 그룹에 있는 게시판명만
나와 외쪽의 메뉴로 만든건데요. 이해가 부족해서 그런지 않되네요?
아래에 $gr_id="guest"; 와 같이 그룹ID 를 적어놓았는데도 다른 그룹이 나오네요
고수님들 부탁합니다.


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

define("_DOCTYPE_", "DESIGN");

$html_title = "그누보드3";

include "./lib/latest.lib.php"; ?>

<table width='100%' cellpadding=0 cellspacing=0 align=center>
<tr>
<td valign=top>
<?

$gr_id="guest";
// $sql = " select * from $cfg[table_group] where gr_id='$gr_id' order by gr_id";
$sql = " select * from $cfg[table_group] order by gr_id ";
$result = sql_query($sql);
echo "<table width=100% cellpadding=0 cellspacing=0><tr>";
//$k=0;
for ($i=0; $row=mysql_fetch_array($result); $i++) {
echo "<td width='100%' height=18><table width=100% cellpadding=0 cellspacing=0><tr><td height=22>▒ <b>$row[gr_subject]</b></a></td></tr><tr><td height=1 bgcolor=#f6f3f3></td></tr></table></td></tr>";
//$k++;

$sql2 = " select * from $cfg[table_board] where gr_id = '$row[gr_id]' order by bo_table ";
$result2 = sql_query($sql2);
$l=0;
for ($j=0;$row2 = mysql_fetch_array($result2); $j++) {
$l++;//게시판앞에 숫자 보이기
echo "<td width=14% height=18><table width=100% cellpadding=0 cellspacing=0><tr><td height=22>0$l.   <a href='./?doc=bbs/gnuboard.php&bo_table=$row2[bo_table]'><b>$row2[bo_subject]</b></a></td></tr><tr><td height=1 bgcolor=#f6f3f3></td></tr></table></td></tr>";
// if($k%7==0)echo "</tr><tr>";
}mysql_free_result($result2);
echo "</tr><tr>";
}mysql_free_result($result);
?>
</tr></table>
</td>
</tr>
</table>
|

댓글 1개

읽어주신분 감사합니다. 저의불찰이었습니다 그룹명의 오타였습니다.
http://www.sir.co.kr/?doc=bbs/gnuboard.php&bo_table=tiptech&sselect=ca_id&stext=2&page=9&wr_id=2474
이 부분이였는데 저의 오타를 모르고 ...
댓글을 작성하시려면 로그인이 필요합니다.

그누3질답

+
제목 글쓴이 날짜 조회
21년 전 조회 745
21년 전 조회 3,844
21년 전 조회 572
21년 전 조회 415
21년 전 조회 468
21년 전 조회 639
21년 전 조회 446
21년 전 조회 445
21년 전 조회 504
21년 전 조회 358
21년 전 조회 737
21년 전 조회 500
21년 전 조회 384
21년 전 조회 556
21년 전 조회 412
21년 전 조회 324
21년 전 조회 468
21년 전 조회 441
21년 전 조회 461
21년 전 조회 386