Aşağıdaki kodlara sayfalama yapamıyorum yardımcı olabilicek arkadaş varmı?



Kod:
<div class="features_items"><?php
	$i = 0;
	$query = mysql_query("SELECT * FROM products ORDER BY id DESC");
	while($product = mysql_fetch_assoc($query)){ $i++; 
   
			?> <!--features_items-->
						<div class="col-sm-4 padding-right">	
								<div class="single-products">
										<div class="productinfo text-center">	
											<img border="0" src="<?=$product["image"]?>"  style="width:100%" onclick="onClick(this)" width="500" height="300"/>
											<p><?=$product["title"]?></p>
										</div>
										<div class="product-overlay">
											<div class="overlay-content">
												<p><?=$product["content"]?></p>
											</div>
										</div>
								</div>
								
						</div>	 
       	<?php if($i==4){$i=0;} } ?>