Weather Display - Monthly All Time Records |
This simple script is a version of one of the first scripts I produced although I do not currently use it myself on my site it was produced for a friend. It will display the graphics the Weather Display produces each month with the monthly records. I wanted an easy way to display the same month from previous years to compare weather conditions between years. This is a very simple script to setup and only requires three variable to be changed to suit your own web site. You need to set the first year you started collecting data with Weather Display and first month. This prevent the script trying to display graphics that are present. The final setting to the location on your directory with your Weather Display is stored. Below is the script which could be cut and pasted into your own site and edited with your own setting. At the bottom of the page is a link to download a zip file of the script. Without adjusting the settings the script should display my weather records. When you load this script http://www.....matr-script.php it should display the current months all time records with thos years records first followed by every other years records you have. To display other months records just add a parameter ?month=n to the end of the URL eg. http://www.....matr-script.php?month=4 to display April's records. The script provided works but you will want to refine it for your own use. One simple refinement would be to add a series 12 links to navigate to each month of the year To see the script in use is at Example of Script in use Weather |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
The above script can be download Monthly All Time Records Script requires PHP5 |