using $_SESSION to query table
i have a spry menu that has 2 levels.
level 1 has a title of "1960's", "1970's", ext all the way to "2000's"
the second level has the years 1961,1962,1963, ext.
in a table i have all the football scores of my high school. each line has the year in it. 1963, town, score, opponent, score
when the user chooses a year, i want it to populate my data set with the year that user chooses.
this is a line from the spry menu.
<li><?php session_id(); $HTTP_SESSION_VARS["yearp"]=1980; ?><a href="all scores.php">1980</a></li>
<li><?php session_id(); $HTTP_SESSION_VARS["yearp"]= 1981;?><a href="all scores.php">1981</a></li>
"all scores.php" is the page that will display the results.
if the user chooses 1980, the results appear from 1981, which is the last one. if i were to add another line that had 1982, it would display 1982 scores.
i need it to keep the varable "yearp" value the user chooses and then display that year.
i'm new to this so please bare with me.
any ideas?
Larry
