welcome to healthcare magic.
i will be glad to be of assistance.
you are experiencing seborrheic dermatitis
of the scalp. its an eczema that you are suffering from.
you will need to treat it topically, apply a steroid lotion like mometasone
lotion twice a day.
also you need to wash your hair with ketoconazole
shampoo. that will help.
tablets, you need to consult with your doctor as to how long you need to continue it.