Answer the question
In order to leave comments, you need to log in
How to output data in the right form depending on the conditions?
There is a checkbox habitat
When processing the form, data is sent: 0 or 1 If it is checked, then it should be displayed
in the loop;
if it is not checked, then only this way $g->habitat
echo $g->date.' '.;
foreach ($group as $key => $g) {
echo $g->date.' '.$g->habitat;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question