Re: [Jason] If any item's checkbox is true
Hi Jason,
I'm following this, trying to learn, and have a couple of questions.
1. With respect to your use of <?php if($record['new_item']):?>, I would have thought that this IF would have been something like if if($record['new_item'] ==1). Can you please explain and help me understand why you used instead <?php if($record['new_item']):?>? Does this catch and include an item if it is other than O, so that ==1 does not need to be used?
2. Why is there the need for this IF clause in light of the 'where' => "new_item = '1'", at the top? I would have thought that this would have only included records where the new_tem field was set to 1, which would obviate a need for the IF clause.
Thanks in advance for helping me understand and clarifying these things.
David