Period while pregnant?

Did anyone find out they were pregnant right after having a period? Or did anyone suffer an ectopic pregnancy and think the bleeding and pain was just period?