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

작성자에 따라 각각 채택완료

클립 10년 전 조회 2,187

일반적으로 아래와 같이 [설정한 레벨]와 [그외 보든레벨]에 따라 볼수있고 없고 하게 하는데,

 

레벨3일떄 보이는 글, 레벨4이상일때 보이는 글, 그외 레벨에서 보이는 글을

각각 모두 충족시키게 보여주고싶어요~

 

어떻게 해야하나요?

------------------------------------

 

레벨3만 보임

그외모든레벨이 볼수있음

     

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

답변 1개

채택된 답변
+20 포인트

</p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;"><?php</p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;">if($member['mb_level'] >= '4') {</p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;"><span style="font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;">    echo '레벨 4이상 일경우';</span></p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;"><span style="font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;">} else if ($member['mb_level'] == '</span><span style="font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;">3') {</span></p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;"><span style="font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;">   echo '레벨 정확히 3일 경우';</span></p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;"><span style="font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;">} else {</span></p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;"><span style="font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;">   echo '레벨 1~2 일 경우';</span></p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;"><span style="font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;">}</span></p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;"><span style="font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;">?>     </span> </p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px;">

 

이런식 말하시는건가요 ? ㅎㅎ

로그인 후 평가할 수 있습니다

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

답변을 작성하려면 로그인이 필요합니다.

로그인