최근방문자 표기 질문드립니다.

· 21년 전 · 382
최근 방문자를 표시 할려고 합니다.
도움 부탁 드려봅니다....

duffla1 회원님의 팁엔텍에 있는 블로그 최근 방문자 소스를 가지고 해볼래도 워낙에 초보라
헤매고 있습니다....^^;
혹시 아시는 회원님계시면 부탁드립니다.

아래는 블로그 최근 방문자에 쓰인 소스입니다.
<?
$rows = "10";
$sqla = " select bo_admin
from gb_board where bo_table = '$bo_table'";
$resulta = sql_fetch($sqla);
$sql = " select *
from gb_blog where bo_table = '$bo_table' and mb_id <> '$resulta[bo_admin]'
order by mb_id desc limit 0, $rows ";
$result = sql_query($sql);
?>
<table width=100% cellpadding=0 cellspacing=0>
<? for ($i=0; $row = mysql_fetch_array($result); $i++) {?>
<tr height=22>
<td><img src='<?=$board_skin?>/img/icon.gif' width='7' height='7' border='0'> 
<? if($row[bo_table]){?>
<a href='./?doc=bbs/gnuboard.php&bo_table=<?=$row[mb_id]?>'><?=$row[mb_name]?></a>
<? } else { echo ""; } ?>
</td>
</tr>
<tr><td height=1 background='<?=$board_skin?>/img/line_width.gif'></td></tr>
<? } ?>
</table>
읽어 주셔서 감사합니다.즐거운 주말되세요~*
|
댓글을 작성하시려면 로그인이 필요합니다.

그누3질답

+
제목 글쓴이 날짜 조회
21년 전 조회 463
21년 전 조회 411
21년 전 조회 416
21년 전 조회 405
21년 전 조회 353
21년 전 조회 445
21년 전 조회 869
21년 전 조회 578
21년 전 조회 494
21년 전 조회 383
21년 전 조회 886
21년 전 조회 408
21년 전 조회 624
21년 전 조회 558
21년 전 조회 492
21년 전 조회 684
21년 전 조회 743
21년 전 조회 411
21년 전 조회 529
21년 전 조회 490