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

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

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'>&nbsp;
<? 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년 전 조회 430
21년 전 조회 382
21년 전 조회 388
21년 전 조회 373
21년 전 조회 331
21년 전 조회 419
21년 전 조회 831
21년 전 조회 559
21년 전 조회 470
21년 전 조회 363
21년 전 조회 860
21년 전 조회 382
21년 전 조회 604
21년 전 조회 530
21년 전 조회 467
21년 전 조회 662
21년 전 조회 717
21년 전 조회 388
21년 전 조회 509
21년 전 조회 463
🐛 버그신고