Hi everybody,
What is the problem in this code,loop does not working .
layout page display loop.
i need 12 columns. in page layout.
plz help me.
<div class="planbooks">
<b><?php echo date(" 'F 'y") ?></b>
<?php $i=0;
foreach ($planbooks as $planbook): ?>
for($i = 0; $i <=15; $i++)
{
if(!($i % $12) && $i > 0)
{
</div> }
<div class="planbooks">
<p><div id="planbook-content" class="float" >
<a class="musttry" href="#" onclick="musttry_add()" >MustTry</a>
<div><img src="/uploads/planbook/<?php echo $planbook['photo'] ?>" alt="" /></div>
<div>
<span class="field-label"> Title: <?php echo $planbook['title_name'] ?></span></div></br>
Country: <?php echo $planbook['country_id'] ?></span><br /></td></tr>
<div>
<span class="field-label">Area: <?php echo $planbook['zone_id'] ?></span><br /></div>
<div>
<span class="field-label">Place: <?php echo $planbook['place'] ?></span><br /></div>
<div><span class="field-label">Occasion: <?php echo $planbook['occasion'] ?></span></div>
<div> <span class="field-label">Itinerary: <?php echo $planbook['itinerary'] ?></span><br /></div>
<div><span class="field-label">Date: <?php echo $planbook['date'] ?></span><br></div>
<div><span class="field-label">Description: <?php echo $planbook['description'] ?></span><br /></div>
</div>
}
<?php
endforeach ?>
</div>
</p>
</div>