[Code]
// see if there is a season_ID in the $_GET
if(isset($_GET['season_ID']))
{
// YES there is a season_ID .
$Season_ID = $_GET['season_ID'];
}
// NO there is no Season_ID.
else
{
// ... then we say it will be the curent season_ID.
$Season_ID=$af_current_seasonID;
}
echo'
<form method="get" name="myform" >
Seizoen ?
<input type="hidden" name="page" value="games"/>
<select name=season_ID onchange="myform.submit();">
<option>---select--</option>';
echo"
// Get the options
$sql =
"
SELECT
*
FROM
af_seasons
ORDER BY
Season_Name DESC
";
$get_seasons= mysql_query($sql) or die (mysql_error ());
while($sdata = mysql_fetch_array($get_seasons))
{
if ($Season_ID == $sdata['Season_ID'])
{
echo '<option value="'. $sdata['Season_ID'] . '" selected>'. $sdata['Season_Name'] . '</option>';
$_SESSION['Season_ID'] = $season_ID;
}
else
{
echo '<option value="'. $sdata['Season_ID']. '">' . $sdata['Season_Name'] . '</option>';
$_SESSION['Season_ID'] = $season_ID;
}
};
mysql_free_result ($get_seasons);
echo'</select></form>';
[/Code]
I want to us the AJAX Dynamic content
[Code]
<A href='' onClick=\"ajax_loadContent('content','external/games.php?id=$Season_ID');return false\">
[/Code]
how do i change my old script to us the AJAX dymanic content script?