It depends!! Dandruff usually appears when people don't wash their hair enough, but as has been previously stated, it could also be a medical reason. Such as psoriosis, which is a severe skin condition causing the skin to flake, much like dandruff but worse. Both my sister and my boyfriend both have this condition, and both have terrific sex lives!
I once had dandfruff when i was about 8. It was because i was a scruffy little f**k and i never used to want to wash my hair. My hair got greasy and dandruff appeared. Im not saying your scruffy, but if its hair washing thats the case, wash it more often!! However, too much hair washing can have the same effect. Wash your hair at least once every other day, and never wash your hair more than once a day.
Hope ive helped and not just rambled on about chuff all!!
emi
xxxx