링크
http://threes.org/gnu3/?doc=bbs/gnuboard.php&bo_table=bwork&wr_id=316 (272) http://www.sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=14261 (216)
<?
define("_GNUBOARD_", TRUE);
// 분류의 사용여부를 체크하기 위해서 반드시 _common.php 파일 인클루드 전에 테이블명을 설정하세요
if(!$bo_table) $bo_table = 'basic'; // 조회할 대상 게시판을 설정하세요.
include_once("./_common.php");
$g4[title] = "";
include_once("./_head.php");
/*
* 지정 게시판에서 자기가 작성한글과 코멘트 목록 조회하기
* 작업 참고 URL : http://www.sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=14261
*/
// 이름 설정 $member[mb_id]: ID, $member[mb_name] : 성명, $member[mb_nick] : 별명
$name = "$member[mb_name]($member[mb_id])";
//#############################################################################
// 작성한 총 글수.
$row = sql_fetch("select count(*) as cnt from $g4[write_prefix]$bo_table where mb_id='$member[mb_id]' and wr_is_comment = 0");
echo"<b>$name</b>님이 등록한 게시글 [등록된 총 <b>$row[cnt]</b>개 중 최근 <b>5</b>개의 목록보기]<br>";
$sql_query = "select * from $g4[write_prefix]$bo_table where mb_id='$member[mb_id]' and wr_is_comment = 0 order by wr_id desc limit 5"; //글 5개 조회
$result = sql_query($sql_query);
while($row=mysql_fetch_array($result)) {
$tmp = strip_tags(stripslashes($row[wr_subject]));
$tmp = cut_str($tmp,60);
echo "<li> ";
if($board[bo_use_category]) echo "<font color=#999999>[$row[ca_name]]</font>";
echo "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$row[wr_id]'> $tmp</a> <font color=#999999>(".date('Y/m/d', strtotime($row[wr_datetime])).")</font><br>";
}
sql_free_result($result);
//#############################################################################
// 작성한 총 코멘트 수.
$row = sql_fetch("select count(*) as cnt from $g4[write_prefix]$bo_table where mb_id='$member[mb_id]' and wr_is_comment = 1");
echo"<br><b>$name</b>님이 등록한 코멘트 [등록된 총 <b>$row[cnt]</b>개 중 최근 <b>10</b>개의 목록보기]<br>";
$sql_query = "select * from $g4[write_prefix]$bo_table where mb_id='$member[mb_id]' and wr_is_comment = 1 order by wr_id desc limit 10"; //코멘트 10개 조회
$result = sql_query($sql_query);
while($row=mysql_fetch_array($result)) {
$tmp = strip_tags(stripslashes($row[wr_content]));
$tmp = cut_str($tmp,80);
echo "<li> ";
echo "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$row[wr_parent]#c_{$row[wr_id]}'> $tmp</a> <font color=#999999>(".date('Y/m/d', strtotime($row[wr_datetime])).")</font><br>";
}
sql_free_result($result);
?>
<?
include_once("./_tail.php");
?>
define("_GNUBOARD_", TRUE);
// 분류의 사용여부를 체크하기 위해서 반드시 _common.php 파일 인클루드 전에 테이블명을 설정하세요
if(!$bo_table) $bo_table = 'basic'; // 조회할 대상 게시판을 설정하세요.
include_once("./_common.php");
$g4[title] = "";
include_once("./_head.php");
/*
* 지정 게시판에서 자기가 작성한글과 코멘트 목록 조회하기
* 작업 참고 URL : http://www.sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=14261
*/
// 이름 설정 $member[mb_id]: ID, $member[mb_name] : 성명, $member[mb_nick] : 별명
$name = "$member[mb_name]($member[mb_id])";
//#############################################################################
// 작성한 총 글수.
$row = sql_fetch("select count(*) as cnt from $g4[write_prefix]$bo_table where mb_id='$member[mb_id]' and wr_is_comment = 0");
echo"<b>$name</b>님이 등록한 게시글 [등록된 총 <b>$row[cnt]</b>개 중 최근 <b>5</b>개의 목록보기]<br>";
$sql_query = "select * from $g4[write_prefix]$bo_table where mb_id='$member[mb_id]' and wr_is_comment = 0 order by wr_id desc limit 5"; //글 5개 조회
$result = sql_query($sql_query);
while($row=mysql_fetch_array($result)) {
$tmp = strip_tags(stripslashes($row[wr_subject]));
$tmp = cut_str($tmp,60);
echo "<li> ";
if($board[bo_use_category]) echo "<font color=#999999>[$row[ca_name]]</font>";
echo "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$row[wr_id]'> $tmp</a> <font color=#999999>(".date('Y/m/d', strtotime($row[wr_datetime])).")</font><br>";
}
sql_free_result($result);
//#############################################################################
// 작성한 총 코멘트 수.
$row = sql_fetch("select count(*) as cnt from $g4[write_prefix]$bo_table where mb_id='$member[mb_id]' and wr_is_comment = 1");
echo"<br><b>$name</b>님이 등록한 코멘트 [등록된 총 <b>$row[cnt]</b>개 중 최근 <b>10</b>개의 목록보기]<br>";
$sql_query = "select * from $g4[write_prefix]$bo_table where mb_id='$member[mb_id]' and wr_is_comment = 1 order by wr_id desc limit 10"; //코멘트 10개 조회
$result = sql_query($sql_query);
while($row=mysql_fetch_array($result)) {
$tmp = strip_tags(stripslashes($row[wr_content]));
$tmp = cut_str($tmp,80);
echo "<li> ";
echo "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$row[wr_parent]#c_{$row[wr_id]}'> $tmp</a> <font color=#999999>(".date('Y/m/d', strtotime($row[wr_datetime])).")</font><br>";
}
sql_free_result($result);
?>
<?
include_once("./_tail.php");
?>
게시글 목록
| 번호 | 제목 |
|---|---|
| 2604 | |
| 2588 | |
| 2587 | |
| 2572 | |
| 2565 | |
| 2561 | |
| 2527 | |
| 2515 | |
| 2501 | |
| 2497 | |
| 2487 | |
| 2484 | |
| 2481 | |
| 2479 | |
| 2463 | |
| 2462 | |
| 2433 | |
| 2396 | |
| 2393 | |
| 2381 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기