Thanks for posting your query.
Weak legs and muscle atrophy
could occur due to pinched nerve
at back. Thorough clinical and neurological examination is required to reach the correct diagnosis.I suggest you to consult an orthopaedician for proper treatment.
Hope this will helps you. Feel free to ask me if you have any further queries.
Wish you good health. Take care.
Dr Saurabh Gupta