How to Loop Through an Array in Clip-Bucket with {section}{/section}
Last Updated on Wednesday, 19 September 2012 07:18 Written by Richi González Thursday, 27 September 2012 12:00
Hello,
When you dynamically need to output records from a database inside your Clip-Bucket, by this moment, you may have noticed that Clip-Bucket is powered by Smarty template engine, therefore, you cannot use a while() loop, for example, like you would normally do in native PHP. In this article we will review the use of {section}{/section} to loop through a MySQL records array.
Difficulty level: Medium (if you know how to use loops in PHP, you’ll find it easier)
1. Create the query to retrieve records from your database (in this example I’ll use queries for MySQL, but you can use any database)
Learn More
Tags: array, bucket, clip, ClipBucket, display, how to, loop, mysql results, retrieve, select results, smarty | Posted under ClipBucket | No Comments

Recent Comments