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

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(vi_time,1,2) as vi_hour, count(vi_id) as cnt
order by vi_hour ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$arr[$row['vi_hour']] = $row[cnt];
$arr[$row['vi_hour']] = $row['cnt'];
if ($row[cnt] > $max) $max = $row[cnt];
if ($row['cnt'] > $max) $max = $row['cnt'];
$sum_count += $row[cnt];
$sum_count += $row['cnt'];
}
?>