Needs to have $delete defined by a form or something.
<?php
<?php
//Connect to DB (not shown)
if($delete)
{
$sql_query = "DELETE FROM table WHERE field = ('$delete')";
$result = mysql_query($sql_query);
echo
"You deleted the following item : " . $delete;
echo
"Click back in your browser to return";
}
else
{
echo (
"You didnt enter any data");
}
?>
?>