erm this might work Its actually supposed to be a combonation.
Code:
$query = "DELETE FROM notices WHERE `id`='$id'";
hey, do this also.
Code:
mysql_query($query) or die(mysql_error());
just to give us an Idea...