I thought y'all might be interested in the code I use on my wxextremes.php page in the <div id="main-copy">...</div> on a copy of wxnewpage.php put <?php include_once('worldextremes.php');
print "<h1>Weather Extremes for $reportDate</h1>\n";
print "<p> </p>\n";
gen_display('World'." (omitting $omittedCountry)",$worldhigh,$worldlow,$worldprecip);
gen_display('Canada',$countryhigh,$countrylow,$countryprecip);
gen_display('USA (lower 48)',$usahigh,$usalow,$usaprecip);
list($glhigh,$gllow,$glprecip) = scan_for($worldStations,'United States','AK',$tUOM,$rUOM);
gen_display('Alaska'."",$glhigh,$gllow,$glprecip);
gen_display('California',$statehigh,$statelow,$stateprecip);
list($glhigh,$gllow,$glprecip) = scan_for($worldStations,'United States','HI',$tUOM,$rUOM);
gen_display('Hawaii'."",$glhigh,$gllow,$glprecip);
print '<p><small><strong>Data from <a href="https://www.cpc.ncep.noaa.gov/products/cadb/">NOAA Climate Prediction Center</a>. ';
print 'worldextremes.php script by <a href="/scripts-NWSmisc.php#NWSEXTR">Saratoga-weather.org</a></strong></small><br/>'."\n";
print "Raw-data CSV file <a href=\"".gen_url($utcUse)."\">Download</a></p>\n";
function gen_display($legend,$hightemp,$lowtemp,$precip) {
print "<h2>$legend</h2>\n";
print "<table style=\"border: none;\">\n";
print "<tr><td><span style=\"color: red\"><strong>High Temperature:</strong></span></td><td>$hightemp</td></tr>\n";
print "<tr><td><span style=\"color: blue\"><strong><br/>Low Temperature:</strong></span></td><td><br/>$lowtemp</td></tr>\n";
print "<tr><td><span style=\"color: green\"><strong><br/>Precipitation:</strong></span></td><td><br/>$precip</td></tr>\n";
print "</table>\n";
print "<p> </p>\n";
}
?>