Problem with foreach loop and $_GET
<p>I have a very simple foreach loop</p>

<pre><code>foreach($tv as $id =&gt; $channel) {
$ID = $_GET['ID'];
if($ID == $id){$class = "currentt";}
echo '&lt;a href="http://www.mysite.com/tst.php?ID='.$id.'"     class="'.$class.'"&gt;'.$channel.'&lt;/a&gt;&lt;br&gt;';
 }
</code></pre>

<p>With url query, with every click the current class repeated. How can avoid this?
Thanks alot.</p>
