if 구분 좀 알려주세요 채택완료
아무것도 몰라
if 구분을 몰라서 올렸습니다.
<?php
$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 ";
$result2 = sql_query($sql2);?>
<?php if($sql2[$i]) { //서브메뉴가 있을 때 링크 보내기?> <-------함수를 모르겠습니다.
<a href="<?php echo $row['me_link']; ?>" target="_<?php echo $row['me_target']; ?>" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<?php } else { //서브메뉴가 없을 때 링크 보내기 ?>
<a href="<?php echo $row['me_link']; ?>" target="_<?php echo $row['me_target']; ?>">
<?php } ?>
답변 4개
mysql_num_rows -->쿼리한 레코드가 몇개인지 계산
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인