sql 데이터 가져오기 객체while , 배열for문
while로 가져오기 객체.. $today = date("Y-m-d"); $week_day1 = date("Y-m-d", (strtotime('-1 days', time()))); $week_day2 = date("Y-m-d", (strtotime('-2 days', time()))); $sql = "SELECT ROUND(avg(convert(float,temp)),2) AS 'temp', ROUND(avg(convert(float,humidity)),2) AS 'humidity', ROUND(avg(convert(float,water)),2) AS 'water', ROUND(avg(convert(float,cdc)),2) AS 'cdc', LEFT(date_time,10) as 'date_time' ..
2021. 9. 29.