My zucchini plants always start producing fruit, then when about 3-4 inches long start rotting from the tip down.
Certified GKH Gardening Expert
It sounds like you are having pollination issues. When the flowers are not properly pollinated, the plant will reject the fruit while they are just a few inches long. You may need to hand pollinate. This article will help: