I want to create simple pagination page php

Hello guys I want to Very Simple pagination using PHP without any database and MySQL

    `<?
  if(isset($_GET['page'])){
if($_GET['page'] == 'page=2'){  ?>
  <div class="row">
        <div class="col-md-4 portfolio-item">
     
            <a href="apps/Best5Friends_">
            <div class="media">
                <img class="img-responsive" class="media__image" src="http://fun.megsta.com/images/Created/Best5Friends.jpg" alt="">
                <div class="media__body">
    		 <h3 style="border-top: 1px solid; border-radius: 10px; color: azure;">Play Now</h3>
    		  </div></div>
            </a>
            <h4 style="border-bottom: 2px solid rgb(68, 152, 125);">
                <a href="apps/Best5Friends_">Find who is your top 5 friends?</a>
            </h4>

        </div>
<?}elseif(($_GET['page'] == 'page=3'){?>

        <div class="col-md-4 portfolio-item">
     
            <a href="apps/Best5Friends_">
            <div class="media">
                <img class="img-responsive" class="media__image" src="http://fun.megsta.com/images/Created/Best5Friends.jpg" alt="">
                <div class="media__body">
             <h3 style="border-top: 1px solid; border-radius: 10px; color: azure;">Play Now</h3>
              </div></div>
            </a>
            <h4 style="border-bottom: 2px solid rgb(68, 152, 125);">
                <a href="apps/Best5Friends_">Find who is your top 5 friends?</a>
            </h4>

        </div>
<?}
       }?>`

Hi Riyaz_saifi welcome to the forum

The way your conditionals are now, the URL would need to be like

...index.php?page=page=2

I don’t think that will work very well.

$_GET vars work better like

...index.php?key=value
if($_GET['key'] == "value") {

Can you explain, what do you mean under “pagination” at all?

@Riyaz_saifi: I notice you have deleted all your replies to this topic. Does that mean you have now found a satisfactory solution? If so, please post it here, and let other members know there is no need for them to assist you any further.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.