왼쪽메뉴 카테고리 관련 질문좀 드리겠습니다. 정보
왼쪽메뉴 카테고리 관련 질문좀 드리겠습니다.본문
제가 아래처럼 head.php파일 하나에 왼쪽메뉴들을 불러와서 사용하고 있습니다.
만약 왼쪽메뉴에 게시판이 아닌 카테고리가 001,002 이런식으로 있다면 어떤 방식으로 불러와야
하는지 궁금합니다.
그럼 수고하세요.^^
<?
if($bo_table=="notice"){
include_once("$g4[path]/html/left_notice.php");
}
if($bo_table=="estimate"){
include_once("$g4[path]/html/left_estimate.php");
}
if($bo_table=="gallery2"){
include_once("$g4[path]/html/left_gallery.php");
}
?>
만약 왼쪽메뉴에 게시판이 아닌 카테고리가 001,002 이런식으로 있다면 어떤 방식으로 불러와야
하는지 궁금합니다.
그럼 수고하세요.^^
<?
if($bo_table=="notice"){
include_once("$g4[path]/html/left_notice.php");
}
if($bo_table=="estimate"){
include_once("$g4[path]/html/left_estimate.php");
}
if($bo_table=="gallery2"){
include_once("$g4[path]/html/left_gallery.php");
}
?>
Fatal error: Uncaught TypeError: mysqli_fetch_assoc(): Argument #1 ($result) must be of type mysqli_result, null given in /home/kagla/new-sir/old/lib/common.lib.php:2339 Stack trace: #0 /home/kagla/new-sir/old/lib/common.lib.php(2339): mysqli_fetch_assoc() #1 /home/kagla/new-sir/old/skin/board/v16/view.skin.php(795): sql_fetch_array() #2 /home/kagla/new-sir/old/bbs/view.php(403): include_once('...') #3 /home/kagla/new-sir/old/bbs/board.php(300): include_once('...') #4 {main} thrown in /home/kagla/new-sir/old/lib/common.lib.php on line 2339