글쓴이의 포인트를 표시하는 변수설정
글을 읽었을 때
글쓴이의 포인트를 표시하려고 합니다.
<?
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?>
이렇게 쓰려고 하는데 안되네요.
어디가 잘못된 걸까요?
도움 부탁드립니다.
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 2개
출력부 : <?=$profile[mb_point]?>