MIAMI -- Entering Thursday night, the Philadelphia Phillies were 1-40 when trailing after eight innings. Make that 2-40 now. Tony Gwynn Jr. led off the ninth with a walk against Miami closer Steve Cishek and later scored, Ben Revere added the go-ahead run when Miami second baseman Donovan Solano bobbled a potential double-play grounder and the Phillies rallied past the Marlins 5-4 Thursday night to snap a six-game losing streak. "We basically took what they gave us," Phillies manager Ryne Sandberg said. "As they gave us bases our guys were alert and had the speed on the bases to get into scoring position and then it was just balls in play and avoiding strikeouts and making something happen." Revere had two hits for the Phillies, who won for the third time in 13 games. It was Reveres sixth multi-hit game in his last eight outings. It was back-and-forth all night, the last swing going Philadelphias way: The Marlins led 2-0, the Phillies went up 3-2 and the Marlins scored two in the eighth, grabbing a 4-3 lead on Jeff Bakers pinch-hit triple. But in the ninth, Cishek gave the Phillies a chance, and they took advantage. "I just made things more difficult than they needed to be," said Cishek, who was 18 for 19 in save chances entering Thursday. "And the end result kind of showed right there." Gwynn went to third on a single by Revere and wound up scoring the tying run on a grounder by Jimmy Rollins. Chase Utley then hit another grounder to Solano, who only had the play at first and allowed Revere to score easily. Marlins manager Mike Redmond didnt speculate about what Solanos bobble meant, saying the innings biggest mistake was the free pass Cishek (4-4) issued to Gwynn. "He walked the leadoff guy," Redmond said. "So after that, I dont think it matters." Phillies closer Jonathan Papelbon got his 19th save in 21 chances. Jake Diekman (3-2) got the win despite a shaky eighth, giving up two runs and costing Philadelphia the lead. "Good thing is we didnt get swept, we were able to get a win," Gwynn said. "Hopefully it will propel us into some more. Getting swept is a bad feeling and then having to get on a plane after that is even worse." Marcell Ozuna had three hits and scored twice for Miami, and Christian Yelich also had a two-hit night for the Marlins. Casey McGehee extended his hit streak to 10 for Miami, reaching base for the 27th straight game. Cameron Rupp had a two-run, two-out, full-count double off Miami reliever Chris Hatcher to highlight Philadelphias three-run sixth. Rupp was batting .125 before his opposite-field hit sailed over Giancarlo Stantons head and off the right-field wall. Phillies starter Kyle Kendrick gave up six hits and struck out four in seven innings, leaving with a 3-2 lead. Marlins starter Brad Hand gave up three singles to open the sixth and was chased after 99 pitches, the fourth-most of his career. Hands sacrifice bunt -- his first RBI in nearly three years -- allowed Ozuna to score Miamis first run in the second. Ozuna singled and scored again in the fifth, Yelich driving him in that time for a 2-0 Miami lead. NOTES: Through two innings, Hand had thrown 47 pitches, Kendrick 20. ... The Phillies lead the season series 7-6. ... Nathan Eovaldi (5-3, 3.71) starts for Miami at St. Louis on Friday against Lance Lynn (8-6, 3.38). The Phillies will send Roberto Hernandez (3-7, 4.26) to the mound in Pittsburgh against Gerrit Cole (6-4, 4.02). ... Both teams have played 85 games this season. The Marlins were 32-53 at this point in 2013, the Phillies were 41-45. ... The wife of Marlins pitcher Tom Koehler gave birth to a daughter Thursday, Redmond said. Russ Francis Jersey . In an interview with La Presse this week, the five-time Stanley Cup champion and three-time NHL scoring leader specifically took aim at wingers Thomas Vanek and Max Pacioretty, saying they cant show up in a 7-4 win over the New York Rangers in Game 5 of the Eastern Conference Final and come up empty in Game 6. Larry Allen Jersey . Grimes signed a $32 million, four-year contract to remain with Miami. The deal, which includes $16 million guaranteed, rewards Grimes for his recovery from an Achilles tendon injury that forced him to miss almost all of the 2012 season. http://www.custompatriotsjersey.com/custom-jim-nance-jersey-large-501f.html . Wheeler scored at 4:58 of overtime, with Scheifele getting an assist, and the Jets beat the slumping Colorado Avalanche 2-1 on Sunday night. Jeff Garcia Jersey . Wayne and Cindy Tuck of Ilderton, Ont., closed out round-robin play earlier in the day with a 7-3 win over Finland but needed a win over Austria to reach the final eight. Rickey Jackson Jersey . Golden States second straight road win wasnt painless. David Lee scored a season-high 29 points -- 13 in the fourth quarter -- and Nate Robinson added 17 points, leading the Warriors to a 105-95 win Tuesday night over the road-worn Cleveland Cavaliers. So who will be playing the first playoff series there in 2018? Because, lets be honest, the Red Wings are pretty much a guarantee for the playoffs for the rest of time.ddddddddddddIf you want to know more about the plans check out districtdetroit.com. ' ' '