관리자 또는 작성자가 아닐경우의 if 문 봐주세요. 채택완료
요즘 기초문법 때문에 헤매네요.
1) 관리자 또는 작성자가 아닙니다
</p><p><?</p><p>if ($member['mb_id'] != $view['mb_id'] || $is_admin != "super")</p><p>{ <span style="font-size: 10pt; line-height: 1.5;">echo "관리자 또는 작성자가 아닙니다" </span><span style="font-size: 10pt; line-height: 1.5;">}</span></p><p>?></p><p>
잘못된 부분 봐주세요 ~~
2) 그냥 $is_admin 지정하게 되면,
최고관리자(super) , 그룹관리자(group) , 게시판관리자(board) 중에서 어떤 관리자를 지정한게 되나요?
</span></p><p><span style="font-family: 돋움, dotum, helvetica; font-size: 12px; line-height: 20.3999996185303px; text-align: justify; background-color: rgb(245, 248, 249);"><?</span></p><p><span style="font-family: 돋움, dotum, helvetica; font-size: 12px; line-height: 20.3999996185303px; text-align: justify; background-color: rgb(245, 248, 249);">if ($is_admin)</span></p><p><span style="font-family: 돋움, dotum, helvetica; font-size: 12px; line-height: 20.3999996185303px; text-align: justify; background-color: rgb(245, 248, 249);"> { echo "관리자"; }</span></p><p><span style="font-family: 돋움, dotum, helvetica; font-size: 12px; line-height: 20.3999996185303px; text-align: justify; background-color: rgb(245, 248, 249);">?></span></p><p><span style="font-family: 돋움, dotum, helvetica; font-size: 12px; line-height: 20.3999996185303px; text-align: justify; background-color: rgb(245, 248, 249);">
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인
항상 고맙습니다 ^^