if(isset($_POST['year'])){ $query = 'DELETE FROM publications.classics WHERE `year`=".$year."'; $result = mysqli_query($link,$query); }