sounds like a viral or bacterial infection... I had diarrhea for 9 days like you describe it.
could also be food poisoning...
keep hydrated and if this lasts longer for 3 days without improvement, please see a doctor and get this checked out.
you may need a stool sample.