탈

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

· 2005-01-08 (토) 14:29:40 · 428
최근 방문자를 표시 할려고 합니다.
도움 부탁 드려봅니다....

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질답

9,564건
+
제목 글쓴이 날짜 조회
05-01-09 조회 396
05-01-09 조회 480
05-01-09 조회 892
05-01-08 조회 612
05-01-08 조회 539
05-01-08 조회 429
05-01-08 조회 917
05-01-08 조회 450
05-01-08 조회 656
05-01-08 조회 600
05-01-08 조회 525
05-01-08 조회 722
05-01-07 조회 774
05-01-07 조회 449
05-01-07 조회 556
05-01-07 조회 532
05-01-07 조회 540
05-01-07 조회 518
05-01-07 조회 623
05-01-07 조회 651