I would start with something like this:
$con = new PDO( "mysql:host=".$dbHost.";"."dbname=".$dbName, $dbUsername, $dbUserPassword);
$con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$sql = "DELETE FROM `table` WHERE id = ?";
$q = $con->prepare($sql);
$response = $q->execute(array($id));
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…