Firstly, frag DEINEN Lehrer. You surely have to have all of the declination tables learned by heart or at least on a nice summary note, that's the basic thing. Search for 2 tables: bestimmte Artikel (der) and unbestimmte Artikel (ein). When the time comes, you'll also have to learn the declination of adjectives after bestimmte Artikel, unbestimmte Artikel and ohne Artikel.
Now 'dein' follows the pattern of declination of unbestimmte Artikel (ein), that's why in Dativ it takes the form of 'deiner' (for die/eine) and 'deinem' (for der/ein). So that's for the declination, you have to be careful about the gender and do a lot of exercises. I only started to use it intuitively after 3 or 4 years so don't be frustrated, we all go through it :)
Now the cases. Genitiv (wessen?) is hardly ever used, don't worry about it for now. It's important to differ the questions for which we use Dativ (wem?) and Akkusativ (wen?). French doesn't have cases so you should look for a good explanation in a grammar book. Generally wem? corresponds to 'to who?' (To who did you give the book?) and wen? to who? (Who did you see? Who did you touch?). I know it doesn't really make sense this way.