修改delete2.php
$phoneid = $_GET['phoneid']; // need this to identify the particular record to delete
echo "
Deleting record ...
";
include 'database_conn.php'; // make db connection
$sql = "DELETE FROM product WHERE phoneid = $phoneid";
mysql_query($sql) or die (mysql_error());
echo "
Record deleted
";
mysql_close($conn);
echo "
Back To Administrator Area
";
?>