File: C:/xampp/htdocs/ACProof/admin/delete.php
<?php
/*
All source code copyright and proprietary Melonfire, 2002. All content, brand names and trademarks copyright and proprietary Melonfire, 2002. All rights reserved. Copyright infringement is a violation of law.
This source code is provided with NO WARRANTY WHATSOEVER. It is produced and meant for illustrative purposes only, and is NOT recommended for use in production environments.
Read more articles like this one at http://www.melonfire.com/community/columns/trog/ and http://www.melonfire.com/
*/
// delete.php - delete a press release
?>
<html>
<head>
<basefont face="Verdana">
</head>
<body>
<!-- standard page header begins -->
<p> <p>
<table width="100%" cellspacing="0" cellpadding="5">
<tr>
<td></td>
</tr>
<tr>
<td bgcolor="Navy"><font size="-1" color="White"><b>>��Ƨ@�~: Delete</b></font></td>
</tr>
</table>
<!-- standard page header ends -->
<p>
<?php
// includes
// open database connection
$host="127.0.0.1";
$user="root";
$pass="fredsql";
$db="fograproof";
$connection = mysql_connect($host, $user, $pass) or die ("Unable to connect!");
mysql_query("SET NAMES 'utf8'");
//$link = mssql_connect("MACBOOK7", "sa", "fred5697");
mysql_select_db($db) or die ("Unable to select database!");
$query = "DELETE FROM ACdevice WHERE id = '$id'";
$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
mysql_close($connection);
// print result
echo "<font size=-1>Deletion successful. <a href=list.php>Go back to the main menu</a>.</font>";
?>
<!-- standard page footer begins -->
<p>
<table width="100%" cellspacing="0" cellpadding="5">
</table>
<!-- standard page footer ends -->
</body>
</html>