I didnt know where to post,so ill post here.I have a little problem figuring out this..
http://prntscr.com/59ao21 When i click serie A or premier league,i want in fields below to list just teams from those leagues http://prntscr.com/59aosj and not all teams from my database.Can someone help me ??? I use codeigniter and everything else is working just fine
<p>Избери лига: <select name="ligi">
<option value=""> Одбери </option>
<option value=""> Serie A </option>
<option value=""> Premier League </option>
</select></p>
</form>
<form action="" method="get">
<p>Тим 1: <select name="tim1">
<?php foreach($timovi as $team){?>
<option value="<?php echo $team['id'];?>" <?php if(@$_GET['tim1']==$team['id']){
echo 'selected="selected"';
};?>><?php echo $team['name'];?></option>
<?php }?>
</select></p>