고수님 도와주세요 채택완료
ㅐ늑대ㅐ
8년 전
조회 7,465
아래 소스를 지정한 그룹내 게시판만 출력하십습니다
고수님 도와주세요
echo "
foreach($auto_menu as $k => $item){
if($k == 0) continue;
foreach($item['sub'] as $sub){
$selected = ($row['mb_rolling2'] == $sub['href']) ? "selected=selected" : "";
echo "";
}
}
echo "";
?>
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
8년 전
</p><p style="color:rgb(72,72,72);font-family:'돋움', Dotum, sans-serif;font-size:14.004px;line-height:25.2072px;"><?php</p><p style="color: rgb(72, 72, 72); font-family: "돋움",Dotum,sans-serif; font-size: 14.004px; line-height: 25.2072px; margin-left: 40px;">if($board['gr_id'] == '그룹ID'){ </p><p style="color: rgb(72, 72, 72); font-family: "돋움",Dotum,sans-serif; font-size: 14.004px; line-height: 25.2072px; margin-left: 40px;"><span class="Apple-tab-span" style="white-space:pre;"> </span>echo "<select name='mb_rolling2[$i]'>";</p><p style="color: rgb(72, 72, 72); font-family: "돋움",Dotum,sans-serif; font-size: 14.004px; line-height: 25.2072px; margin-left: 40px;"><span class="Apple-tab-span" style="font-size:11pt;line-height:1.5;white-space:pre;"> </span><span style="font-size:11pt;line-height:1.5;">foreach($auto_menu as $k => $item){</span> </p><p style="color: rgb(72, 72, 72); font-family: "돋움",Dotum,sans-serif; font-size: 14.004px; line-height: 25.2072px; margin-left: 40px;"><span class="Apple-tab-span" style="white-space:pre;"> </span>if($k == 0) continue;</p><p style="color: rgb(72, 72, 72); font-family: "돋움",Dotum,sans-serif; font-size: 14.004px; line-height: 25.2072px; margin-left: 40px;"><span class="Apple-tab-span" style="white-space:pre;"> </span>foreach($item['sub'] as $sub){</p><p style="color: rgb(72, 72, 72); font-family: "돋움",Dotum,sans-serif; font-size: 14.004px; line-height: 25.2072px; margin-left: 40px;"><span class="Apple-tab-span" style="white-space:pre;"> </span>$selected = ($row['mb_rolling2'] == $sub['href']) ? "selected=selected" : "";</p><p style="color: rgb(72, 72, 72); font-family: "돋움",Dotum,sans-serif; font-size: 14.004px; line-height: 25.2072px; margin-left: 40px;"><span class="Apple-tab-span" style="white-space:pre;"> </span>echo "<option $selected value='".$sub['href']."'>".$sub['name']."</option>";</p><p style="color: rgb(72, 72, 72); font-family: "돋움",Dotum,sans-serif; font-size: 14.004px; line-height: 25.2072px; margin-left: 40px;"><span class="Apple-tab-span" style="white-space:pre;"> </span>}</p><p style="color: rgb(72, 72, 72); font-family: "돋움",Dotum,sans-serif; font-size: 14.004px; line-height: 25.2072px; margin-left: 40px;"><span class="Apple-tab-span" style="white-space:pre;"> </span>}</p><p style="color: rgb(72, 72, 72); font-family: "돋움",Dotum,sans-serif; font-size: 14.004px; line-height: 25.2072px; margin-left: 40px;"><span class="Apple-tab-span" style="white-space:pre;"> </span>echo "</select>";</p><p style="color: rgb(72, 72, 72); font-family: "돋움",Dotum,sans-serif; font-size: 14.004px; line-height: 25.2072px; margin-left: 40px;">} </p><p style="color:rgb(72,72,72);font-family:'돋움', Dotum, sans-serif;font-size:14.004px;line-height:25.2072px;">?></p><p style="color:rgb(72,72,72);font-family:'돋움', Dotum, sans-serif;font-size:14.004px;line-height:25.2072px;">
이런걸 물어보시는건가요??
질문의 내용을 잘 모르겠어요.
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인