Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (22 sloc) 451 Bytes
<HTML>
<HEAD>
<TITLE>New Document</TITLE>
</HEAD>
<BODY>
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("openspace", $con);
$usn = $_POST['my_id'];
$query = "DELETE from `me` WHERE my_id='$usn'";
if (!mysql_query($query,$con))
{
die('Error: ' . mysql_error());
}
echo "ONE record deleted";
?>
</BODY>
</HTML>