Kevin,
Is the climatedatayearout snipet missing any code by chance? The txt file you posted seems to be missing code at the end.
Thanks for sharing these two files.
Jack
Not that I'm aware of.... The script you see is what is being called by the Index.php file in that same directory that provides the info about the script. What is not in the script is the CSS that is being used by it though...
You can run the code directly with the URL:
http://www.tnetweather.com/scripts/climate1/script.phpIt will just output a plain table of the data.
The formatting that I applied to it in the index page is below:
<style type="text/css" >
#sampscript {
font-family: 'Courier New', monospace;
font-size: 80%;
}
#sampscript table {
width: 99%;
font-color: #008000;
border: 1px solid #22464F;
border-right: 4px solid #22464F;
border-bottom: 4px solid #22464F;
border-collapse: collapse;
padding: 2px;
}
#sampscript th, td {
font-color: #008000;
font-size: 100%;
border: 1px solid #22464F;
background-color: white;
text-align:center;
}
#sampscript th {
font-size: 80%;
background-color: #CDDBCD;
}
#sampscript pre {
font-size: 80%;
color: black;
}
</style>
I just added a comment line and a closing ?> to the end of the file to show where it ends though.