Answer: Your friend was on the right track-but not quite! Squash have specific male and female blossoms, but bear both on the same plant. They are quite distinguishable: the male flower has a straight stem; the female stem has a bulbous enlargement just below the flower, which eventually becomes the squash fruit. Usually the male flowers are produced before the female ones appear, and there are always more male flowers than female.
So your problem seems to be one of pollination. Is your garden sprayed? If so, possibly all the pollinators have been killed. Don't use insecticides indiscriminately to avoid losing the beneficial insects and pollinators. Do you use a row cover to protect your plants from cucumber beetles? If so, do you remember to remove it when the plant blooms so the pollinators can do their job? Hand pollination is possible, but if you are observant this summer, you should be able to watch nature does her job!
By the way, with a small garden, you can either chose a bush type squash that won't take much space, or consider a trellis to support the fruit of vining types. Enjoy!
Q&A Library Searching Tips