Peeing

So tonight I've layed down and really needed to pee but when I get on the toilet I get a painful sensation and only a little bit comes out, then I noticed a wee bit of blood on the toilet paper. This has happened about 3 times now and I can't get to sleep because of it, does anyone know what this is? Or what I should do?