[eluser]BrianDHall[/eluser]
[quote author="Jamie B" date="1254857488"]I don't follow..
It's not the ID I want to check, it is the last last LIMIT, out of 5 I want to be different.[/quote]
Code:
<?php
$i = 0;
foreach($news->result() as $item): ?>
<? $i++; ?>
<? if ($i == 5)
{
echo '<div class="box-news" style="margin-right:0;">';
}
else
{
echo '<div class="box-news">';
}
?>
<a href="/news">
<img >picture?>" alt="" width="176" height="130" />
</a>
<h4>
<a >id?>"><?=$item->title?></a>
</h4>
<p>
<?=$item->description?>
</p>
</div>
<?php endforeach; ?>
Quod erat demonstrandum
I think that was what you were wanting, the 5th box has a different style than the others.