I'm trying to update a single element in one of my tables using a PDO prepared statement, and for some reason it's not working. I'm using try-and-catch and I'm receiving no errors from the system. I've also echoed both of my bound parameters, and they are both registering in the system, so I don't know why it's not going through. I've used a query very similar to this in another script and everything was fine.
if($_POST['check_request'] == "Yes"){
$check_amnt = $_POST['check_amnt'];
try {
$STH = $DBH->prepare('UPDATE accounts SET check = :check_amnt WHERE accnt = :user');
$STH->bindParam(':check_amnt', $check_amnt);
$STH->bindParam(':user', $ulog);
$STH->execute();
}
catch(PDOException $e) {
echo "Check Input Error: " .$e->getMessage(). "</br>";
}
}