Hi, hoping someone can help. I run a small site for my local football club and use a stats php set of scripts to keep player and match stats through the season. The admin section allows me to set the default view to the current season which should show the 2005/06 matches list or 2005/06 players list depending on which you choose to view from the relevant link. The database contains details for past seasons which can be selected from a pull down selection menu. I’ve used to programme for several seasons with no problems but for some reason I find that now the default view isn’t working correctly. Sometimes the scripts are displayed as they should be, sometimes it doesn’t find any of the data at all but I can then obtain the current season data by using the pulldown menu, sometimes the script displays all the data for this season and last season. It does this quite randomly and other visitors are complaining of the same problem.
The scripts are located here:
http://www.portisheadafc.co.uk/tpl2_first/index.php
This is the bit of code that sets the default view:
if(!session_is_registered('defaultseasonid_tplss') || !session_is_registered('defaultmatchtypeid_tplss') || !session_is_registered('defaultlanguage_tplss'))
{
$SESSION['defaultseasonid_tplss']=$pdata['DefaultSeasonID'];
$SESSION['defaultmatchtypeid_tplss']=$pdata['DefaultMatchTypeID'];
$SESSION['defaultlanguage_tplss']=$pdata['DefaultLanguage'];
$defaultseasonid=$SESSION['defaultseasonid_tplss'];
$defaultmatchtypeid=$SESSION['defaultmatchtypeid_tplss'];
$defaultlanguage=$SESSION['defaultlanguage_tplss'];
}
else
{
$defaultseasonid=$SESSION['defaultseasonid_tplss'];
$defaultmatchtypeid=$SESSION['defaultmatchtypeid_tplss'];
$defaultlanguage=$_SESSION['defaultlanguage_tplss'];
}
Hope I’ve included all I need to. I’m tearing my hair out and hoping someone can help
Steve Hyde