Dispersion and fingering in miscible and immiscible fluids within a porous medium