As he is having temperature for several days and having some gastric problem might require some investigations.
Go for complete blood check up,
Go for Widal test
After report go for specific treatment after consulting your doctor.
Give him light diet like milk, rice, fruit juices.
Give him plenty of water.
Ok and take care.