开发者

jcarousel and database query

开发者 https://www.devze.com 2023-01-06 21:44 出处:网络
im using a jcarousel: $(document).ready(function() { $(\'#mycarousel\').jcarousel({ vertical: true, auto: 3,

im using a jcarousel:

  $(document).ready(function() {
    $('#mycarousel').jcarousel({
        vertical: true,

         auto: 3,
         wrap: 'circular'


    })
})

so it is a circular config , i have a q开发者_如何学Gouery like this :

$sql=mysql_query("SELECT * FROM my_insujets, my_inmessages WHERE my_insujets.insujets_idforum = my_inmessages.inmessages_idsujet ORDER BY inmessages_date DESC LIMIT 6"); 

so the carousel shows 3 rows then the other 3 rows, but after this it keeps on in a loop where nothing is showed.

    <div id="wrap">
       <ul id="mycarousel" class="jcarousel jcarousel-skin-tango">

        while($row=mysql_fetch_array($sql) ) {  ?>
       <li>
       <?php echo $row["message"]; ?>
  </li>  
               <?php  }  ?>
        </ul>
           </div>


I do not know if this is the problem, but it appears that your <li> tags are not closed.


I don't see an end </li> in your example code.

0

精彩评论

暂无评论...
验证码 换一张
取 消