Error Slider Dinamis Dengan Carousel dan PHP

Jadi Saya Mau Membuat Slider Dinamis dengan carousel , Di Carousel nanti Tampil Gambar - judul - Cuplikan Berita . Tetapi waktu saya coba error. For Code :
Udah Ane Ubah Jadi :
<div id="transition-timer-carousel" class="carousel slide transition-timer-carousel" data-ride="carousel">
  <ol class="carousel-indicators">
<?php
include 'config/koneksi.php';
$count = mysql_query("SELECT COUNT(*) FROM tb_berita") or die(mysql_error());
 $ngitung = mysql_result($count,0);
for($i=0; $i<$ngitung;$i++){
 echo '<li data-target="#transition-timer-carousel" data-slide-to="'.$i.'"'; if($i==0){ echo 'class="active"'; } echo '></li>';
}
?>
</ol>
<div class="carousel-inner">
                            <?php
                            //Query database
                            $sql = mysql_query("SELECT * FROM tb_berita ORDER BY id_news desc limit 3");
                            while($row = mysql_fetch_assoc($sql)){
                              echo '
                              <div class="item '; if($row['id_news'] == 1){ echo 'id_news'; } echo '">
                                <img src="foto/berita/'.$row['gambar'].'" />
                                <div class="carousel-caption">
                                  <h4 class="carousel-caption-header">'.$row['judul'].'</h4>
                                </div>
                              </div> ';
                            }
                            ?>
                          </div>
                          <!-- Controls -->
                          <a class="left carousel-control" href="#transition-timer-carousel" data-slide="prev">
                            <span class="glyphicon glyphicon-chevron-left"></span>
                          </a>
                          <a class="right carousel-control" href="#transition-timer-carousel" data-slide="next">
                            <span class="glyphicon glyphicon-chevron-right"></span>
                          </a>
                          <!-- Timer "progress bar" -->
                          <hr class="transition-timer-carousel-progress-bar animate" />
                        </div>
Tetep Gakeluar gan, Apa Ada yang Salah ya ? #CMIIW
avatar OutAttacker

@OutAttacker

40 Kontribusi 11 Poin


Jawaban

mysql_query paramternya cuman 1, yaitu querynya http://php.net/manual/de/function.mysql-query.php itu errornya
avatar immeng

@immeng

10 Kontribusi 18 Poin


Udah Ane ubah jadi gitu gan codingnya , tapi tetep gamuncul
avatar OutAttacker

@OutAttacker

40 Kontribusi 11 Poin


Login untuk gabung berdiskusi