Welcome Guest, Not a member yet? Register   Sign In
Getting last ID
#11

[eluser]kurucu[/eluser]
[quote author="mrwilson1" date="1254860390"]I am far from an expert on this, but couldn't you use the child pseudo element here? fifth-child?[/quote]It would appear I'm even further Wink But it got the ball rolling!
#12

[eluser]Boris Strahija[/eluser]
You could also do it like this:
Code:
<?php
foreach ($news->result() as $i=>$item) :
    ...
endforeach
?>
This way you don't need to increment $i, it is done automatic since $i is the key of the object list.
#13

[eluser]jayrulez[/eluser]
you can use the css pseudo class :last-child
#14

[eluser]gvillavizar[/eluser]
[quote author="Boris Strahija" date="1254874050"]You could also do it like this:
Code:
<?php
foreach ($news->result() as $i=>$item) :
    ...
endforeach
?>
This way you don't need to increment $i, it is done automatic since $i is the key of the object list.[/quote]

Wow, that one will save me some code.

Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB