Play It Again, Sam
A film critic is dumped by his wife along with also his ego is crushed. His protagonist character is the guy played with Humphrey Bogart in many of his movies along with Bogart's apparition begins arriving to offer him his advice. With his two friends' encouragement, he actually tries dating again, using less than satisfactory results, until he awakens.