Hello PHP Buddies,
I used this simple php codes to have a section on my page to delete records.
I want to add an action so that i when i click delete i have to confirm first.
Right now when i click it deletes the record right away. I dont want that i might misclick and lose data acidentically.
if ((isset($_GET['cmd'])) && (isset($_GET['ID'])))
//$header = $_SESSION[md5("search")];
($_GET['cmd'] == "delete")
mysql_query("DELETE FROM `programming_language_snippet_codes_vaults` WHERE `ID` ='".intval($_GET['ID'])."'") or die("Failed to delete Record with ID: ".$_GET['ID']."<br/>".mysql_error());
//header("location: $header") or die("Failed to delete Record with ID:");