Im 31 years old and I want to get married but not have children?

So like finding the right guy is taking a lot of time I've had 2 failed relationships from my mid to late 20's and now I'm 31 and I'm still searching for the guy I want to settle with... So my question is that will men lose interest in me when I start reaching 40? I feel concerned cause I always see other guy who don't want kids but run over for girls in there 20's of at least that's what I see on TV or the internet.

Im 31 years old and I want to get married but not have children?
Post Opinion