未显示<a> tag

时间:2018-05-25 15:34:43

标签: javascript php

Actually I don't know how to explain my problem.I have a gallery which inside the Album. I have used lightbox中的图片以显示图片。但是当我点击相册图片时,它从图像4/4开始然后点击3/4并且等等。

我的galler.php

<?php 
 include("database/connection.php");
 $result=mysql_query("SELECT t1.image,t1.name,x from Album_image t1 LEFT JOIN(SELECT GROUP_CONCAT(DISTINCT image) as x,aid from Gallery_image GROUP by aid) t2 on t1.aid = t2.aid ORDER BY t1.aid DESC");
 while ($row1= mysql_fetch_array($result)) { 
?>
<div class="col-md-4 menu-grid wow bounceInDown" data-wow-delay="0.3s">
    <?php $rowmain=explode(',', $row1[2]);
    foreach ($rowmain as $image) {?>
    <a href="admin/gcatch/<?php echo $image;} ?>" data-lightbox="<?php echo $row1[1] ?>">
    <img src="admin/acatch/<?php echo $row1[0] ?>" alt="" class="img-responsive">
    </a>
    <h3><?php echo $row1[1]?></h3>                  
</div>
<?php }?>

0 个答案:

没有答案