For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > April 2005 > Complex loops - SECTIONS









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Complex loops - SECTIONS
HarryG

2005-04-09, 4:00 am

Hi,

I am basically trying to do the following and need some help.

{section name=count loop=$Photos start=1 step=4}
<tr>
<td>{$Photos[count].Filename}</td><td>{$Photos[count+1].Filename}</td><td>{$Photos[count+2].Filename}</td><td>{$Photos[count+3].Filename}</td>
</tr>
{/section}

Because my step is 4, I wanna print all the photos from 1-4 in the first row and then 5-8 in the second and so on...

Thanks in advance
HarryG
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com