I've got two tables in my database, one like
**ID / muscle group name**
1 / arms
2 / chest
3 / legs
and another table like this
**ID / muscle_name / muscle_group_id**
1 / biceps / 1
2 / triceps / 1
3 / extensor / 1
4 / flexor / 1
How can I get the data from my database so that I can retrieve the information like
echo $result['arms'][0]
(to get muscle_group_id for arms)
and then iterate over all the muscles in the arm?