From b7989d617fd1b4ae7b775c98764bb81916cc91de Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 5 Oct 2018 10:27:28 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=98=EB=AA=BB=EB=90=9C=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/faqlist.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adm/faqlist.php b/adm/faqlist.php index acfb094e9..80319c82f 100644 --- a/adm/faqlist.php +++ b/adm/faqlist.php @@ -22,7 +22,7 @@ $sql_common = " from {$g5['faq_table']} where fm_id = '$fm_id' "; // 테이블의 전체 레코드수만 얻음 $sql = " select count(*) as cnt " . $sql_common; $row = sql_fetch($sql); -$total_count = $row[cnt]; +$total_count = $row['cnt']; $sql = "select * $sql_common order by fa_order , fa_id "; $result = sql_query($sql); @@ -60,7 +60,7 @@ $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { $row1 = sql_fetch(" select COUNT(*) as cnt from {$g5['faq_table']} where fm_id = '{$row['fm_id']}' "); - $cnt = $row1[cnt]; + $cnt = $row1['cnt']; $s_mod = icon("수정", ""); $s_del = icon("삭제", "");