Pharmacy question

Had this happen three weeks ago with my family. An antibiotic was needed and we did not have a prescription. Went to the first pharmacy and they would not sell it. Went to a second and they sold the antibiotic. Understand the new law but not sure it is being equally followed at all locations.
Walt