There are many different kinds of prayer. Yet all prayer has one basic purpose. We pray not to get something, but to open up a two-way street between us and God so that we (and others) may inwardly become something beautiful that we share with others.
We may encounter many defeats, but we must not be defeated. It may even be necessary to encounter the defeat, so that we can know who we are. So that we can see, oh, that happened, and I rose. I did get knocked down flat in front of the whole world, and I rose.