테스트 사이트 - 개발 중인 베타 버전입니다

이것좀 봐주세요.ㅠㅠ

그누 쓰고있는데,

이름출력부분에

아래 소스 보면은

레벨 (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>
<? } ?>

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 1개

<?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>

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440