<?php $id = (int) $_GET['del']; $q = "DELETE FROM novinky WHERE id = '$id'"; mysql_query($q); die( header("Location: admin.php?novinky") );