a

관리자일 경우만 표시하는 방법 질문 드립니다. (소스코드 포함)

[code]
<!-- 추천한 회원 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td bordercolor="#CCCCCC" </td>
<td height="30" bgcolor="#F7F7F7" style="line-height:15pt;word-break:break-all;">추천한 유저: <?=$view[wr_good]?> 명<br>
<?
$sql = " select b.mb_nick from g4_board_good a, g4_member b where a.bo_table='$bo_table' and a.wr_id='$wr_id' and a.mb_id=b.mb_id order by a.bg_id asc ";
$result = mysql_query($sql);
while($row=mysql_fetch_array($result)) {
echo "<font color=blue><b> <a href = /adm/member_list.php?sfl=mb_nick&stx=$row[mb_nick]>$row[mb_nick]</a></b></font>  ";
}
?></td>
</table>
<br>
<!-- 추천한 회원 끝 -->
[/code]

이런 소스가 있는데요.

관리자일 경우에만 표시하게 하고 싶습니다.

if ($is_admin)을 하려고 해도 <?과 {,}를 어디서 열고 닫아야 하는지 모르겠습니다.. ㅠ.ㅠ

댓글 1개

<? if ($is_admin == 'super' || $is_auth) { ?>
<!--- 운영자만 볼 내용 --->
<? } ?>
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
13-07-01 조회 1,130
13-07-01 조회 1,141
13-07-01 조회 1,107
13-07-01 조회 855
13-07-01 조회 1,136
13-07-01 조회 1,144
13-07-01 조회 886
13-07-01 조회 1,028
13-07-01 조회 923
13-07-01 조회 1,117
13-07-01 조회 3,273
13-07-01 조회 1,622
13-07-01 조회 1,107
13-07-01 조회 889
13-07-01 조회 1,009
13-07-01 조회 1,721
13-07-01 조회 1,193
13-07-01 조회 885
13-07-01 조회 1,772
13-07-01 조회 1,114