I am trying to modify a count query so I can the output onto a webpage. Current code is:
$db->setQuery("SELECT COUNT(`SubmissionId`) FROM #__forms WHERE FormId='8' ");
echo "So far we have <strong>".$db->loadResult()."</strong> submissions";
It works fine as it shows the number of submisisons where the value in the formid is 8. But I also want to include in the sum formid 4 and 5 so I have a combined total.
Any ideas?