서브메뉴 문의요 채택완료
</p><p><?php for ($i=1; $i < $menu_cnt; $i++) { ?></p><p><a href="<?php echo $menu[$i]['href'];?>"<?php echo $menu[$i]['target'];?>><?php echo $menu[$i]['name'];?></a></p><p> </p><p><?php for($j=0; $j < count($menu[$i]['sub']); $j++) { <span class="Apple-tab-span" style="white-space:pre"> </span>?></p><p><a href="<?php echo $menu[$i]['sub'][$j]['href'];?>"<?php echo $menu[$i]['sub'][$j]['target'];?>><?php echo $menu[$i]['sub'][$j]['name'];?></a></p><p><?php } ?></p><p><?php } ?></p><p>
서브메뉴를 관리자설정에서 출력여부 상관없이 서브메뉴가 있으면
무조건 보이게 하려고 하면 어떻게 수정해야 되나요 ??
답변 2개
$sql2 = " select *
from {$g5['menu_table']}
where me_use = '1'
and length(me_code) = '4'
and substring(me_code, 1, 2) = '{$row['me_code']}'
order by me_order, me_id ";
=> 서브 메뉴 쿼리가 위와 같다면 아래처럼 변경하시면 무조건 나오게 될것입니다.
$sql2 = " select *
from {$g5['menu_table']}
where length(me_code) = '4'
and substring(me_code, 1, 2) = '{$row['me_code']}'
order by me_order, me_id ";
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인