Contrast a bacterial infection with a viral infection.