Hello all - First post here. Hope someone can help. A PHP "Newbie" describes me pretty well. I can edit the HTML component in pre-existing scripts to get things to look the way I want, but when faced with writing a script from scratch as I am now, I'm lost. My needs here are pretty simple. Anyway, here goes:
The primary goal is to use PHP to access a tab-delimited text file of ski resort snow conditions and display this data in a table. One of the "fields" in the text file is a state postal code (NY, CT, VT, MA, etc...). I would like the ability to initially display a list of state links, and when the visitor clicks on a state the data from the text file for that state only, is displayed. Below is an abbreviated example of the text file. It actually contains many more fields than shown here, but this should do for demonstration purposes:
Mohawk Mountain |CT|WETGR |30 |
Mt Southington |CT|WETSN |33 |
Jay Peak |VT|PP |46 |
Killington |VT|WETPS |55 |
Mad River Glen |VT|PP |36 |
So if the user clicks on a a link to Connecticut, data for Mohawk Mountain and Mt Southington should be displayed in an HTML table. Similary, if Vermont is clicked, only the snow conditions for Jay Peak, Killington, and Mad River Glen should be displayed in the table.
Again, there is much more data in this text file than shown here, but if I can get an approach going to display the above, I'm sure I can replicate it to display all the fields I need. If it would help anyone to see the complete text file, PM me or Email me. Thanks!