registry->db->prepare($sql); $stmt->bindValue(':table_name',$tableName, PDO::PARAM_STR); $stmt->bindValue(':data',$data,PDO::PARAM_STR); $stmt->bindValue(':transaction_type',$transactionType,PDO::PARAM_STR); $stmt->bindValue(':action_by',$actionBy,PDO::PARAM_STR); $stmt->execute(); return true; } catch (PDOException $e) { return false; } catch (ErrorException $e) { return false; } } }