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