I have a table which previews all the records in a table of my database. I made a button that when it's clicked, all the records of the given table are erased. I just want to add a confirmation message right after the user clicks delete all.

deleteall.php

```
// get the 'id' variable from the URL
$id = $_GET['id'];
$table = $_GET['table'];
mysqli_query($con,"DELETE FROM $table");

```

link (in another php file)

```
echo "<td><a href='../cms/deleteall.php?id=" . "&table=" . $table .  "'>Delete All</a></td>";

```

Any suggestions?