I have a table set up with these types Columns:
Date_Time datetime PK ppm2 int ppm10 int aqi int
the query I am using is
SELECT * FROM aqi_data where Date_Time = CURDATE()
This returns 0 records
<?php $chartQuery = "SELECT * FROM aqi_data where Date_Time = CURDATE()";
$chartQueryRecords = mysqli_query($con, $chartQuery);
while($row = mysqli_fetch_assoc($chartQueryRecords)){
echo "'".$row['Date_Time']."',".$row['aqi'].
",".$row['ppm2'].",".$row['ppm10']."],";
} ?>
Can anyone help me with this, please?