Delete Database entry in html webpage

Hello,
I have a php form with which I can enter the signs up the database and I can also see the records that I have entered.
Now I would like to delete the records, as for that was following this tutorial: http://www.webestilo.com/php/php07e.phtml
Well, after changing a few linia have adopted the code to my form and my database, I get a column to delete a row, but when I click on it nothing happens.
Here I pass the screenshot of my page:
http://www.megaupload.com/?d=LB4WDPC2
This is my code:
-----------------------index.php---------------------------

Biblioteca

Biblioteca

ISBN: Títol: Autor: Editorial: Gènere: Edició: Llengua: Sinposi: Pàgines: Any:
<?php include("connexio.php"); $link=Conectarse(); $result=mysql_query("select * from llibres",$link); ?> <?php
while($row = mysql_fetch_array($result)) {
	printf("<tr><td>&nbsp;%s</td> <td>&nbsp;%s</td> <td>&nbsp;%s</td> <td>&nbsp;%s</td> <td>&nbsp;%s</td> <td>&nbsp;%s</td> <td>&nbsp;%s</td> <td>&nbsp;%s</td> <td>&nbsp;%s</td> <td>&nbsp;%s</td><td><a href=\"borrarindex.php?id=%d\">Borra</a></td></tr>", $row["ISBN"], $row["Titol"], $row["Autor"], $row["Editorial"], $row["Genere"], $row["Edició"], $row["Llengua"], $row["Sinopsi"], $row["Pàgines"], $row["Any"], $row["ID_Prueba"]);
}
mysql_free_result($result);
mysql_close($link);	

?>

 ISBN   Títol   Autor   Editorial   Gènere   Edició   Llengua   Sinopsi   Pàgines   Any   Borra&nbsp

--------------------borrarindex.php-------------------------------

<?php include("connexio.php"); $link=Conectarse(); $id=$_GET['id']; mysql_query("delete from llibres where ID_Prueba = $id",$link); header("Location: index.php"); ?>

If anyone knows how to resolve this problem please say it to me
Thanks.

Sponsor our Newsletter | Privacy Policy | Terms of Service