如何使它成爲僅對數據而不是html數據的foreach循環?在coloumn數據中使用foreach循環
<div class="columns">
<div class="title">Donation Amount</div>
<div class="title">Support</div>
<div class="title">View Grant</div>
<?php foreach ($results->result() as $grant) : ?>
<div class="col1"><p>AUD $<?php echo number_format($grant->user_budget);?></p></div>
<div class="col2"></div>
<div class="col3"></div>
</div>
<div class="clear"></div>
<?php endforeach ; ?>
不要把HTML foreach循環裏面? – Waygood 2013-05-01 07:03:55
@Waygood但我需要顯示它與cols – 2013-05-01 07:04:34
@JessMcKenzie - 確定什麼是確切的問題? – ncm 2013-05-01 07:04:52