The trick to keeping paint on the floor is to get as much dirt up as possible, wash the floors down with soapy water (any detergent works) and then strip the floor with a good floor stripper (Zep makes a good product for this) The more elbow grease you invest in this project the longer your floors will last. Finally, when you paint, use a good roller, and paint it the way you would paint walls. (don't dump paint on the floor and spread it around) Its better if you paint in several light coats, than trying to paint it all in one heavy coat. Heavy coats tend to pool paint, and then areas of heavier paint flake off easier later.
Finally the floor wax is a good trick to extend the life of the paint- but once you wax you need to keep waxing every so often to keep protecting the paint.
Source(s):
I have painted many boiler room floors.