I would also include a specific record that you want to delete.
and set the query like this.
- Code: Select all
$query = 'delete form table where id = "'.$_GET['record'].'"';
if there is not record at id 24 then it will not delete anything. so it will only delete something on it's first attempt. remember in your database you should have an auto_incremention field as your primary index which if one is deleted there will never be another with the same index number.