In order to have the most effect they have to be taken regularly, according to the recommended schedule for each medication.
"People suffer from stomach upset, heartburn, and irritation of the lining of the stomach (all of which are referred to as``gastritis""by doctors) when they take NSAIDs."