Good night everyone, I need help in the following code snippet and a gallery of photos and I need to do the pagination of 9 in 9 photos already tried everything and I could not if they can help me there
<!DOCTYPE html>
<body>
<?php include("header.php");?>
<div class="bg-image">
<div class="overlay-bg">
<div class="main-content">
<div class="container">
<div class="row">
<div class="col-md-12">
<div id="menu-container">
<div class="col-md-12" align="center">
<div class="dropdown btn btn-danger">
<a href="\index.php" style="color:#ffffff"><b>INÍCIO</b></a>
</div>
<div id="menu-1" class="homepage" style="margin-top:50px;">
<div class="row">
<?php for ($i=1; $i <= 2; $i++) { ?>
<div class="col-md-4 col-sm-6 col-xs-6">
<div class="portfolio-item">
<div class="overlay">
<a href="images/gallery/fruteira/<?php echo$i; ?>.jpg" data-rel="lightbox">
<i class="fa fa-expand"></i>
</a>
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#exampleModalLong<?php echo$i?>" style="color:red;">Preços</button>
</div>
<img src="images/gallery/fruteira/<?php echo$i; ?>.jpg" alt="Image 9">
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include("footer.php"); ?>
</div>
</div>
</div>
</div>
</body>
</html>