Hello,
to make the default value "Select Score"
change the code from
Code:
<td>
<select name='jform[home_team_score][<?php echo $match->match_id;?>]' style='max-width: 110px;'>
<option value=''>Select Score</option>
<?php for($sc=0;$sc<=20;$sc++): ?>
<option value='<?php echo $sc; ?>'<?php echo $sc==$match->home_prediction?" selected='selected'":""; ?>><?php echo $sc; ?></option>
<?php endfor;?>
</select>
-
<select name='jform[away_team_score][<?php echo $match->match_id;?>]' style='max-width: 110px;'>
<option value=''>Select Score</option>
<?php for($sc=0;$sc<=20;$sc++): ?>
<option value='<?php echo $sc; ?>'<?php echo $sc==$match->away_prediction?" selected='selected'":""; ?>><?php echo $sc; ?></option>
<?php endfor;?>
</select>
</td>
to
Code:
<td>
<select name='jform[home_team_score][<?php echo $match->match_id;?>]' style='max-width: 110px;'>
<option value=''>Select Score</option>
<?php for($sc=0;$sc<=20;$sc++): ?>
<option value='<?php echo $sc; ?>'<?php echo $sc==$match->home_prediction&&$match->home_prediction!=""?" selected='selected'":""; ?>><?php echo $sc; ?></option>
<?php endfor;?>
</select>
-
<select name='jform[away_team_score][<?php echo $match->match_id;?>]' style='max-width: 110px;'>
<option value=''>Select Score</option>
<?php for($sc=0;$sc<=20;$sc++): ?>
<option value='<?php echo $sc; ?>'<?php echo $sc==$match->away_prediction&&$match->away_prediction!=""?" selected='selected'":""; ?>><?php echo $sc; ?></option>
<?php endfor;?>
</select>
</td>
Best Regards