Procter & Gamble posted a boost in sales and earnings for the second quarter and raised its outlook for the fiscal year, the company announced on Friday.