my code would only work if the catid for a would be 0, for b it would be 1, for c 2
$y = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z");
for($x=0;$x<sizeof($y);$x++) {
echo "<a href=\"script.php?category=$x\">$y[$x]</a> ";
}