Well, the doc may be right, and also could be you also have a
pinched nerve, there are nerves that run out of the lower spinal cord and into the legs. A nerve can get pinched off by swelling or pushed on by a herniated disk. The doc sounds like he's taking the moderate treatment approach by giving you medicine, altho I'm not too sure about the one he gave you. But he should also should have probably recommended physical therapy for you.