관리자: 변수 상수 제외 홑따옴표

This commit is contained in:
whitedot
2012-12-26 14:47:34 +09:00
parent a441937076
commit b023c3414d
55 changed files with 594 additions and 598 deletions

View File

@ -19,11 +19,11 @@ $sql = " select SUBSTRING(vs_date,1,4) as vs_year, SUM(vs_count) as cnt
order by vs_year desc ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$arr[$row['vs_year']] = $row[cnt];
$arr[$row['vs_year']] = $row['cnt'];
if ($row[cnt] > $max) $max = $row[cnt];
if ($row['cnt'] > $max) $max = $row['cnt'];
$sum_count += $row[cnt];
$sum_count += $row['cnt'];
}
?>