I have a dynamically generated DIV
<div class="content drag-desired">
<?php
$result = mysql_query("SELECT * FROM XXXX WHERE qty != 0");
while($row=mysql_fetch_assoc($result))
{
echo '<div class="product"><img src="img/products/'.$row['img'].'" alt="'.htmlspecialchars($row['name']).'" width="128" height="128" class="pngfix" />
<div>'.$row['price'].'$</div></div>';
}
?>
<div class="clear"></div>
</div>
the while loop makes the list be very long,
Any idea how to make the div contains 6 items only and show the fetched items 6 by 6?
I don't know the logic behind the scene. :)
I will be appreciated, if someone explain the follow chart for making the div slides.
Thanks