메뉴 색상 활성화 php 질문
본문
헤드 메뉴 부분입니다.
<?php
$sql = " select *
from {$g5['menu_table']}
where me_use = '1'
and length(me_code) = '2'
order by me_order, me_id ";
$result = sql_query($sql, false);
$gnb_zindex = 999; // gnb_1dli z-index 값 설정용
for ($i=0; $row=sql_fetch_array($result); $i++) {
?>
<li <?php if($xxxxxxxxx==xxxxxxxxx):?> class="on"<?php endif?> style="z-index:<?php echo $gnb_zindex--; ?>">
<a href="<?php echo $row['me_link']; ?>" target="_<?php echo $row['me_target']; ?>" class="gnb_1da"><?php echo $row['me_name'] ?></a>
원래는 $bo_table==$row2['bo_table'] 이렇게 만들어서 썻는데 bo_table 이 이제 안먹히더라구요..
이번 업데이트가 있고 나서 xxxxx 부분에 뭐라고 넣어야지 메뉴 클릭시 class on이 활성화가 될지 감이 안잡힙니다..
어떻게 너어줘야할까요?ㅠㅠ
답변을 작성하시기 전에 로그인 해주세요.