답변 1개
채택된 답변
+20 포인트
11년 전
</p><p>if ($is_admin) {//관리자라면 </p><p style="margin-left: 40px;">$sql = mysql_query("select mb_level from g5_member where mb_id = '".$view[mb_id]."'");//글쓴이의 아이디로 멤버테이블에서 레벨검색</p><p style="margin-left: 40px;">$result = mysql_fetch_array($sql);</p><p style="margin-left: 40px;">switch($result[mb_id]){</p><p style="margin-left: 80px;"><span style="font-size: 10pt; line-height: 1.5;">case "2":</span></p><p style="margin-left: 120px;"><span style="font-size: 10pt; line-height: 1.5;">$mb_level ="일반회원";</span></p><p style="margin-left: 120px;"><span style="font-size: 10pt; line-height: 1.5;">break;</span></p><p style="margin-left: 80px;"><span style="font-size: 10pt; line-height: 1.5;">case "3":</span></p><p style="margin-left: 120px;"><span style="font-size: 10pt; line-height: 1.5;">$mb_level = "열심회원";</span></p><p style="margin-left: 120px;"><span style="font-size: 10pt; line-height: 1.5;">break;</span></p><p style="margin-left: 40px;">}</p><p>}</p><p>
$mb_level << 이걸 원하는 위치에 넣어주시면 되용
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
D
Dessi
11년 전
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
감사합니다.