Hi
I have to display below snippet according to data available in DB
<div id="testimonial-row">
<div id="testimonial">
<ul>
<li>"Hello World"</li>
</ul>
</div>
<div id="testimonial">
<ul>
<li>"Hello World"</li>
</ul>
</div>
<div id="testimonial">
<ul>
<li>"Hello World"</li>
</ul>
</div>
</div>
That is, the <div id="testimonial-row">
should be created everytime the count of data (here, hello world) becomes greater than 3, hence in this way if the data count is "16" the the <div id="testimonial-row">
should be created 6 times with all the data displayed in created 6 <div>
tags
So could some one tell me how to implement the for loop to make this happen in PHP?