Hello , I want to add a confirmation before I delete a record . For example if the user wants to delete they press "Yes" otherwise "NO" and go back.
The code I have now is:
<?php
//delete user
$sSQL = "DELETE FROM user WHERE (userid = ".$_GET['record_id'].")";
$result = mysql_query($sSQL) or die(mysql_error());
echo "<h1> User deleted succesfully</h1><br>";
?>
Can someone help me. Thanks.