글쓴이의 포인트를 표시하는 변수설정 정보
글쓴이의 포인트를 표시하는 변수설정본문
글을 읽었을 때
글쓴이의 포인트를 표시하려고 합니다.
<?
if ($list[$i]['mb_id']) {
$row2 = sql_fetch(" select mb_point from $g4[member_table] where mb_id = '{$list[$i]['mb_id']}' ");
$total_point = $row2['mb_point'];
}
?>
if ($list[$i]['mb_id']) {
$row2 = sql_fetch(" select mb_point from $g4[member_table] where mb_id = '{$list[$i]['mb_id']}' ");
$total_point = $row2['mb_point'];
}
?>
글쓴이의 포인트 : <?=$total_point?>
이렇게 쓰려고 하는데 안되네요.
어디가 잘못된 걸까요?
도움 부탁드립니다.
댓글 전체
참조하십시오 : http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=3183
출력부 : <?=$profile[mb_point]?>
출력부 : <?=$profile[mb_point]?>
아.. 정말 고맙습니다. 이런 간단한 방법이...