Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Smarty foreach loop
08-18-2013, 01:30 AM #1
- Join Date
- Jul 2010
- Thanked 18 Times in 18 Posts
Smarty foreach loop
I'm using smarty a smarty template that has a foreach loop, and each 3rd time it inserts a new row, which works fine, my only problem is if the isn't a number divisible by 3 the HTML for the rest of my page gets messed up.
Is there anyway I can fix this or should I look for a different approach?
08-19-2013, 09:13 AM #2
can you paste some code that you have now?There are 10 types of people on CodingForums,
Those who understand Binary and those who dont.
Get Cloud Hosting now from only£59 / month