이것좀 봐주세요.ㅠㅠ 정보
이것좀 봐주세요.ㅠㅠ
본문
그누 쓰고있는데,
이름출력부분에
아래 소스 보면은
레벨 (2) -> 회원은
색상 랜덤
비회원 (1)은 #cecece
그리고 그 밑에
회원아이디가 'bot' 인 아이디느
초록으로
마지막으로 ( is_admin ) 최고관리자는
색상이 빨간색으로 표시
---------
인데, 계속 안되네요.
뭐가 잘못되었나요?
--------
<?php
$str = array('#99cc00', '#666666', '#333333', '#484896', '#233548');
$no = rand(0, count($str) - 1);
?>
<? if($member[mb_level] == 2){ ?>
<font color="<?=$str[$no]?>"><?=$list[$i][wr_name]?></font>
<? } ?>
<? if($member[mb_level] == 1){ ?>
<font color="cecece"><?=$list[$i][wr_name]?></font>
<? } ?>
<? if($member[mb_id] == 'bot'){ ?>
<font color="green"><?=$list[$i][wr_name]?></font>
<? } ?>
<? if($is_admin){ ?>
<font color="red"><?=$list[$i][wr_name]?></font>
<? } ?>
이름출력부분에
아래 소스 보면은
레벨 (2) -> 회원은
색상 랜덤
비회원 (1)은 #cecece
그리고 그 밑에
회원아이디가 'bot' 인 아이디느
초록으로
마지막으로 ( is_admin ) 최고관리자는
색상이 빨간색으로 표시
---------
인데, 계속 안되네요.
뭐가 잘못되었나요?
--------
<?php
$str = array('#99cc00', '#666666', '#333333', '#484896', '#233548');
$no = rand(0, count($str) - 1);
?>
<? if($member[mb_level] == 2){ ?>
<font color="<?=$str[$no]?>"><?=$list[$i][wr_name]?></font>
<? } ?>
<? if($member[mb_level] == 1){ ?>
<font color="cecece"><?=$list[$i][wr_name]?></font>
<? } ?>
<? if($member[mb_id] == 'bot'){ ?>
<font color="green"><?=$list[$i][wr_name]?></font>
<? } ?>
<? if($is_admin){ ?>
<font color="red"><?=$list[$i][wr_name]?></font>
<? } ?>
댓글 전체
<?php
$str = array('#99cc00', '#666666', '#333333', '#484896', '#233548');
$no = rand(0, count($str) - 1);
?>
<? if($member[mb_id] == 'bot'){
echo "<font color='green'>";
}elseif($member[mb_level] == 2){
echo "<font color='$str[$no]'>";
}elseif($member[mb_level] == 1){
echo "<font color='cecece'>";
}elseif($is_admin){
echo "<font color='red'>";
}
?>
<?=$list[$i][wr_name]?></font>
$str = array('#99cc00', '#666666', '#333333', '#484896', '#233548');
$no = rand(0, count($str) - 1);
?>
<? if($member[mb_id] == 'bot'){
echo "<font color='green'>";
}elseif($member[mb_level] == 2){
echo "<font color='$str[$no]'>";
}elseif($member[mb_level] == 1){
echo "<font color='cecece'>";
}elseif($is_admin){
echo "<font color='red'>";
}
?>
<?=$list[$i][wr_name]?></font>