[eluser]nemanjanq[/eluser]
I have something like this, this is edit page for "people"
Code:
<?php foreach ($query as $row): ?>
//some output here
<?php foreach ($query_organisations as $row): ?>
<option value="<?=$row->id?>"><?=$row->name?></option>
<?php endforeach; ?>
<?php endforeach; ?>
This is not working, I get errors after end of inner foreach, this is probably wrong way to do it. How should I do it ?