I am having difficulties getting my code to work how I want.
To set the stage, I have a weather database and I am trying to pull in current values (got that working fine), then minimum and maximum values for the day. This is where I cannot seem to get it to work (no errors, just no data either).
Below is the code I am working with.
$today_date = date('Y-m-d')
$result14 = mysql_query('SELECT outdoortempF FROM ongoing WHERE date="$today_date" ORDER BY outdoortempF DESC');
$maxtemp = mysql_fetch_row($result14);
$maxtemp = $maxtemp[0];
Basically, I want the code to look at the values in the "outdoortempF" field of the database, for all the rows where the "date" field matches the current date. I then want the temperature values to be in descending order, and finally I want it to establish the maxtemp variable as today's highest value.
Suggestions?
Thanks.