3차메뉴 쿼리적용하는 방법부탁드립니다..ㅠ

3차메뉴 쿼리적용하는 방법부탁드립니다..ㅠ

QA

3차메뉴 쿼리적용하는 방법부탁드립니다..ㅠ

답변 1

본문


        <div id="aside">
            <dl>
                <dt><h3><?php echo $me_gr_name ?></h3></dt>
                <?php
                $sql = " select * from {$g5['menu_table']} where me_code like '$me_gr_code%' and length(me_code) = '4' order by me_code ";
                $result = sql_query($sql);
 
                for ($bi=0; $row=sql_fetch_array($result); $bi++) { // bi 는 board index
                ?>
                <dd><a href="<?php echo $row['me_link'] ?>"><?php echo $row['me_name']?></a></dd>
                <?php } ?>
            </dl>
        </div>

 

복스리님께서 도움을 주셨는데 어디디에 삽입해야 될지 모르겠어서...

질문드립니다.

구성된 쿼리를 어다 집어넣어야 되나요..?


                $sql3 = " select *
                            from {$g5['menu_table']}
                            where me_use = '1'
                              and length(me_code) = '6'
                              and substring(me_code, 1, 4) = '{$row2['me_code']}'
                            order by me_order, me_id ";
                $result3 = sql_query($sql3);  

특정그룹에만 넣으려는데 조건문은 어떻게 만들어할까요..

도움부탁드립니다...

이 질문에 댓글 쓰기 :

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 125,873
© SIRSOFT
현재 페이지 제일 처음으로