The Bills survived a close call with the Dolphins and hung on to win 34-31, earning them a matchup with the defending AFC Champion Cincinnati Bengals next week in Buffalo.