Welcome to Healthcare Magic
Since your hair loss is due to severe dandruff
it's possible you have fungal infection
of your scalp. You can try using Ketoconazole
shampoo like Nizoral which will kill the fungus. But I would recommend that you see a Dermatologist
to correctly find the cause and give you appropriate treatment.