MySQL
$selectSize = "SELECT * FROM products";
$querySize = $db->select($selectSize);
while ($product = $db->fetcharray($querySize)) {
HTML
<ul>
<li>Product A</li>
<li>Product B</li>
<li class='right'>Product C</li>
<li>Product D</li>
<li>Product E</li>
<li class='right'>Product F</li>
</ul>
Question
While getting the product, I want the Product C and Product F or any product after 3 loops will have class='right' to the list style. Let me know
Thanks