It's a huge and complex topic. As Ania wrote, there are seven cases which are used depending on whether the noun is the subject, verb, direct object, indirect object, follows certain verbs, follows certain prepositions and some other things I'm forgetting. There are actually five genders (three masculine) to go along with these seven cases.
The links Ania gave are really good. When I started learning, I had a few books, but I remember 'Colloquial Polish' being the most helpful. For some reason things were broken down into digestible pieces.
Good luck. There's a steep learning curve at the start, but if you can get past that it will get easier.