PHP2005 Posted August 12, 2008 Posted August 12, 2008 (edited) Hi, I am trying to count the number of checkbox which was checked in one of the field in a related record, but I am not sure what am I doing wrong because instead bring the number of that related record it is showing me the number from all the records. (i.e. if I check a,b,c in one record I would like to be showing as 3 if I check d,e,f it should showing 3 check box has been marked but right now it is showing me that 6 checkbox has been marked) What I have until now is: $AddFind = new FX($serverIP,$webCompanionPort); $AddFind->SetDBData('File.fp7','Layout'); $AddFind->AddDBParam('Survey_ID', $Survey_ID); $AddFind->AddDBParam('DetailQ1','*'); $AddFindRecord = $AddFind->FMFind(); $FoundCount = $AddFindRecord['foundCount']; ............. <?php foreach($AddFindRecord['data'] as $SearchKey =>$SearchRecord){ ?> <?php echo $DetailQ1[] = $SearchRecord['DetailQ1'][0];?> <?php }?> Any help will be appreciated. Thank you! Edited August 12, 2008 by Guest
Recommended Posts
This topic is 6016 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now