I have this sql statment:
try {
$sql = $db->prepare( "INSERT INTO myTable (column_a) VALUES (:value_a)" );
$sql->execute( array(
":value_a" => $value_a
));
} catch (PDOException $e) {
echo $e->getMessage();
}
In the catch block, I get the sql error message. But I would like to know, which paramaters and which values were send to the database. Is there a solution for?