MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/bosweb01/b2651/admin.tattso.com/
File Upload :
Current < : /hermes/bosweb01/b2651/admin.tattso.com/delete_entry.php

<?php
$servername = "phuckdesign.netfirmsmysql.com";
$username = "tattso";
$magicword = $_POST[magicword];
$dbname = "places";

try {
    $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $magicword);
    // set the PDO error mode to exception
    $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

    // sql to delete a record
    $sql = "DELETE FROM GoogleMap WHERE id=$_POST[id]";

    // use exec() because no results are returned
    $conn->exec($sql);
    echo "Record deleted successfully <BR><BR>";
    }
catch(PDOException $e)
    {
    echo $sql . "<br>" . $e->getMessage();
    }

$conn = null;

echo "<a href='index.php'>Go back</a>"
?>