Home » Javascript » gallery image not showing their order

gallery image not showing their order

Posted by: admin August 19, 2018 Leave a comment

Questions:

enter image description hereI have an gallery.php file.It consist Albums and it’s gallery images. My problem is when I click on Album image, Gallery images start to showing from images 4/4 then 3/4 and so on.

gallery.php

<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/lightbox-plus-jquery.min.js"></script>
<div class="menu-port">
            <div class="container"> 
                <div class="menu-grid-main">
                    <?php 
                    include("database/connection.php");
                    $result=mysql_query("SELECT * from Album_image where status='process'");
                    while ($row1= mysql_fetch_array($result)) { 
                    ?>

                    <div class="col-md-4 menu-grid wow bounceInDown" data-wow-delay="0.3s">
                        <?php 
                        include("database/connection.php");
                        $result1=mysql_query("SELECT * from Gallery_image where aid=$row1[aid]");
                        while ($row2= mysql_fetch_array($result1)) { 
                        ?>
                        <a href="admin/gcatch//<?php echo $row2['image'] ?>" data-lightbox="<?php echo $row1['name']?>" >
                        <?php }?>
                        <img src="admin/acatch/<?php echo $row1['image'] ?>" alt="" class="img-responsive">
                        </a>
                        <h3><?php echo $row1['name']?></h3>                 
                        <p><?php echo $row1['des']?></p>
                    </div>

                    <?php }?>           
                 <div class="clearfix"> </div>
                </div>                      
            </div>
        </div>

I used lightbox effect to showing gallery images

Please anyone help me to showing image proper format

Answers: