I have strange problem. I am showing these links to interact with them via jQuery and at the very end it always puts symbol "1" for some reason. I've looked through all my pages and this was the one that caused it. Can you please explain why and how can I avoid that? It does not matter what I select from cat, 0 or any other viable id... P.S. I know that code is not complete, but this is just draft to make it all work together...
<?php
$sql = "SELECT * FROM cat WHERE catSubID = 0";
$result = mysql_query($sql)
or die(mysql_error());
while($row = mysql_fetch_assoc($result))
{
?>
<a href="#" class="list" id="btn<?=$row['catID']?>"><?=$row['catName']?></a>
<?
}