$id=$_GET['id'];
$file=$_GET['file'];
$update=mysql_query(UPDATE tb_download SET Counter=Count+1 WHERE id='".$id."') or die (mysql_error());
echo "files/".$file;
<a href="?act=update&id=<?=result['id'];?>&files=<?=$result['file'];?>">Download</a>;
switch($_GET['act']){
case 'update' : $id=$_GET['id'];
$file=$_GET['file'];
$update=mysql_query(UPDATE tb_download SET Counter=Count+1 WHERE id='".$id."') or die (mysql_error());
echo "files/".$file;
break;
}