Its known as co-dependency
How to stop -
You must be happy with yourself before you can expect to be happy with anyone else.
Being happy isn't a 'thing' that happens to you- its a choice! :)
Find something to do that makes you happy like a hobby or a job. A bf can only make you happier with yourself, but you have to be happy first.
Why? Do you need him for sex? Why else would you want a boyfriend? :/
Oh well ask a guy Friend.