Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
잘못된 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Oct 8, 2018
1 parent 4edc9c2 commit 930a2a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adm/faqlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// 테이블의 전체 레코드수만 얻음
$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);
Expand Down Expand Up @@ -60,7 +60,7 @@
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("삭제", "");
Expand Down

0 comments on commit 930a2a1

Please sign in to comment.