Please help me.

Bella

Ladies i need help, 2 days ago my side was hurting and now i have this spotting, i can't tell it's a period too cause it's not that much. So i took a pregnancy test and it came out right away positive but few second it turns negative. What is going on?