Spotting during pregnancy

naomiii

7 weeks pregnant but i had a discharge and its brown is it safe? When i pee there’s a blood too what should i do i feel the pain and cramping..