Chemical pregnancy?

lala
So I've heard of females having a chemical pregnancy. How does that happen and how do you know if you have one or not ?