ORCHARD PARK, N.Y. — The Miami Dolphins confirmed they are the worst team in football this season — and maybe ever — by making Buffalo's popgun offense and banged-up defense look spectacular in dropping their 13th straight game.

Rookie Trent Edwards' four touchdown passes — two each to Lee Evans and Robert Royal — were the most since Drew Bledsoe had that many for Buffalo in 2004, leading Buffalo to a 38-17 win over the woeful Dolphins on Sunday.

The Bills' running attack produced two 100-yard rushers for the first time since 1996, with Fred Jackson having 115 and Marshawn Lynch adding 107.

Buffalo's defense did its part, racking up a season-high five sacks and forcing four turnovers, including safety George Wilson returning rookie quarterback John Beck's fumble 20 yards for a score.

Buffalo (7-6) won for the sixth time in eight games to stay in the AFC playoff hunt while preparing for a key game at Cleveland next weekend.

Sunday's game was all but over by the end of the first quarter, when Rian Lindell set a franchise record by hitting his 18th consecutive field goal, a 51-yarder to put Buffalo ahead 24-7. The 24 points were the most scored by the Bills in a quarter since putting up 28 against Atlanta on Nov. 22, 1992.

Lindell's string ended on his next attempt, pushing a 46-yarder wide left.

The Dolphins (0-13) made things respectable by scoring 10 points in the third quarter, but their poor start continued to raise questions about rookie coach Cam Cameron's job security.

Miami is now off to the third-worst start to a season in NFL history, joining Oakland (1962) and Indianapolis (1986) And the Dolphins, who host Baltimore next weekend, are one loss short of matching the 0-14 record set by Tampa Bay, as an expansion team in 1976, and New Orleans in 1986.

Miami has lost 16 straight dating to last season, matching the eighth longest streak in NFL history.

Running back Samkon Gado scored both Miami touchdowns and finished with 52 yards rushing in his first start this season. Gado became the Dolphins' fourth running back to start this season, filling in for Jesse Chatman (ankle injury).

The Dolphins' offense was otherwise inept until the Bills switched to a prevent defense for most of the second half.

Beck, making his fourth straight start, was yanked after Miami's third possession ended miserably. Without being touched, Beck had the ball slip out of his hand directly into Wilson's arms, allowing the converted receiver to score his second defensive touchdown this year.

Under Beck, the Dolphins managed minus-15 yards offense, gave up three sacks, and Beck lost another 4 yards when he tripped and fell while pulling away from center on his first play from scrimmage.

All that was before it started snowing in the second quarter.

Cleo Lemon wasn't much better, although he did produce the Dolphins' lone bright spot, needing two plays to engineer a 66-yard scoring drive capped by Gado's 12-yard run. It was Miami's first offensive touchdown in more than three games, dating to Lemon's 5-yard run in a 13-10 loss to Buffalo on Nov. 11.

Lemon and the Dolphins, however, quickly returned to their incompetent ways.

On Miami's next three possessions, Lemon threw two interceptions, including one picked off by Donte Whitner after the quarterback attempted a play-action fake with no one in his backfield.