henry started bit me for a couple days each time a new tooth came in. I would take him off the breast, put my finger on his mouth and say very seriously \don't bite mummy' and plop him on the floor (very roughly 

 ) then wait about a minute (he would generally scream upset by my tone and being put on the floor)  then i would pick him up and say in a nice voice 'would you like some milk' (i tried to say it as if id completely forgotten he had bit me - a clean slate) then we would try again. If he bit me again the process would repeat itself. 
I had decided if he bit me three times then that feed was over. However he never bit me more than twice. And within a day or two he had stopped biting. When  a new tooth would come in he seemed to like testing it out and would try biting again but would stop very quickly. 
just a side note though - my son was 4months old when he got his first set of teeth so i honestly dont know how well it would work with an older child - but i assume it would work just fine - its pretty much a short form of timeout really