Return to Snippet

Revision: 18300
at September 27, 2009 19:17 by daveismyname

Initial Code
$id = mysql_real_escape_string($_GET['id'];
$sql = mysql_query("DELETE FROM table WHERE id = '$id'");
header('Location: ' . $_SERVER['HTTP_REFERER']);

Initial URL

Initial Description
Delete row from a database bases on a given id

Initial Title
snippet to delete a row from  a mysql database

Initial Tags

Initial Language