Typhoid is a bacterial infection spread through contaminated food and water, causing prolonged fever, abdominal pain, weakness and sometimes a rash. It is treated with antibiotics, and clean water, hygiene and vaccination help prevent it.
Both cause fever, but typhoid is a bacterial infection from contaminated food/water treated with antibiotics, while dengue is a mosquito-borne virus managed with fluids and monitoring.