hello there
i seem to be stumped as to why this parse error has appeared.
the problem is that it isnt opened above itself - so its there for no reason i can see..
ive tried deleting the line but it then gives me a syntax error
this is the full error :- Parse error: syntax error, unexpected '}' in /homepages/2/d398538194/htdocs/headtohead/divleagueselect.php on line 36
and here is the code for the page :-
<?php
/**
* @author Fifaworld360.co.uk
* @copyright 2012-2020
*/
$sql = "SELECT league_name, country_league FROM league order by country_league, league_id";
$result = mysql_query($sql);
?>
<div class="DivLeftLeagueselect">
<table border="0" align="center" valign="center" width="100%">
<tr class="header_small">
<td>
League/Cup Selector
</td>
</tr>
<tr><td>
<form name="namelist">
<select class="DropdownTD" size="1" name="leagueselector" onChange="getValues('<?php echo $page;?>')">
<option value="empty">Select league or cup</option>
<?php
$temp_league = "";
while($row = mysql_fetch_row($result)){
if ($row[1]!=$temp_league){
?>
<option value="empty"><?php echo $row[1];?></option>
<?php
$temp_league=$row[1];
}
?>
<option <?php if ($league == $row[0])echo "SELECTED"?>
value="<?php echo urlencode($row[0]);?>"><?php echo " ".$row[0];?>
</option>
<?php } ?>
</select>
</form>
</td></tr>
</table>
</div>