NEW YORK (AP) — Stocks climbed for the second day in a row Wednesday at the end of a brutal month for the global market. Investors applauded strong quarterly results from companies including Facebook and General Motors, but U.S. stocks still finished with their worst monthly loss in seven years.Markets in Europe, Asia and the U.S. rallied following better-than-expected results from various companies and continued hiring by U.S. businesses. Many of the biggest gains Wednesday came from technology and internet companies and retailers, which plunged early in October as investors worried about rising interest rates and the U.S.-China trade dispute.The S&P 500 hadn’t risen for two consecutive days since late September. It finished October with a loss of 6.9 percent, its worst since September 2011. The third quarter of this year was the best in five years for U.S. stocks, but those gains were wiped out this month. The S&P 500 is now up 1.4 percent for the year.Stocks began sinking on Oct. 3 as interest rates rocketed higher. Even after those gains eased, investors kept selling stocks as they worried about the trade dispute and other factors that could also hurt economic growth and company profits.Investors are that much more nervous because corporate profit growth is already expected to slow in 2019 after it jumped this year, a big portion of which stemmed from the one-time corporate tax cut.