Bunun gibi birşeymi istiyorsun
<a href="index.php?do=tikla">Tıkla</a>

<?php
if(@$_GET["do"]=="tikla"):
// sorgumuzu çalıştır
$ekle = mysql_query("INSERT INTO tablo (kat,kat2) VALUES ('$kat','$kat2')");
endif;
?>