I have been working on the admin side of my website now for a while.I have successfully created an add page to add items to data in database mysql.But when adding a delete.php page it does not work quite so well.When I select the one I no longer require and click delete button this msg come out and no error also when I check my site it does not delete the article.
this is my delete.php coding
<?php
include ("dbase.php");
//Use method $_Get to retrieve data from url
$id=$_GET['id'];
mysql_query("DELETE FROM logbook WHERE id=$id");
echo mysql_error();
header('Location:delete.php');
?>
Can someone see where I am going wrong?if you need any more info then please let me know. thanks.