Back end for Image Carousel PHP Mysql



我真的不知道如何制作这个照片轮播后端,皮斯,给一个建议。这是我正在使用的网站 http://mabini150.net23.net/这里的代码:

<div class="da-slide">
<h2>MABINI@150 Softlaunch@FAITH</h2>
<p>Mabini @150 with the commemoration of First Asia Institute Of      Technology and
Humanities.Visit the 
<a
href="Gallery.php">Gallery Page</a> for more photos.</p>
<div class="da-img"><img src="css/images/FaithMabini/1.jpg" alt="image01" /></div>
</div>
<div class="da-slide">
<h2>MABINI SHRINE VIRTUAL TOUR</h2>
<p>The Mabini Shrine Tanauan contains a museum and a library, designed by National
Artist for Architecture Juan
F.Nakpil.Visit the <a href="VirtualTour.php">Virtual Tour</a> and
feel like you're in the shrine.</p>
<div class="da-img"><img src="css/images/Mabini/virtual.PNG" /></div>
</div>

创建一个数据库表,其中包含要添加
的所有内容 图像例如(<P> <h2> <a href>)具有特定的列名,例如。对于<P>=关于和对于<h2>=锚标记的标题和链接,然后在主页上从数据库中获取,然后创建一个动态滑块,如下所示

       $query = 'select * from table';
      $result = mysql_query($query);
      while($row=mysql_fetch_array($result))
     {
     echo '<div class="da-slide">';
     echo '<h2>'.$row['heading'].'</h2>';
     echo '<p>'.$row['about'].'</p>';
     echo '<div class="da-img"><img src="'.$row['image'].'" alt="image01" /></div>
      </div>';
   }

最新更新