}

try {
    // sql to delete a record
    $sql = "UPDATE `webApp`.`PENDING_RESULTS` SET `results`='$result' WHERE `id`='$md5'";
    // use exec() because no results are returned
    $conn->exec($sql);
//    echo "Record deleted successfully";
}
catch(PDOException $e)
{
    echo $sql . "<br>" . $e->getMessage();
}
