0
我有重複區域問題。我在這裏要做的是從查詢中重複信息,直到它用完。我有它的限制設置爲5.我想要重複的信息,但有重複的DIV ID更改。這是可能嗎?我想在這裏創建的是一個精選的jQuery滑塊,爲此我需要顯示什麼,以便在滑動或點擊時將這些滑動到主框中。提前致謝。我的代碼改變重複區域中的變量需要修改
<?php
$idname = "fragment-";
$idnum = 1;
echo $idname . $idnum;
?>
<?php do { ?>
<div id="<?php for($idnum=1;$idnum<=5;$idnum++){
echo $idname . $idnum++; break;}?>" class="ui-tabs-panel" style="">
<img src="<?php echo $row_getDisplay['picture']; ?>" alt="" />
<div class="info" >
<h2><a href="fetch?id=<?php echo $row_getDisplay['post_id']; ?>" ><?php echo $row_getDisplay['title']; ?></a></h2>
<p><?php echo $row_getDisplay['preview']; ?><a href="fetch?id=<?php echo $row_getDisplay['post_id']; ?>" >Click Here</a></p> </div>
</div>
<?php } while ($row_getDisplay = mysql_fetch_assoc($getDisplay)); ?>
這是代碼的電流輸出..
<div id="fragment-1" class="ui-tabs-panel" style="">
<img src="images/archives/2012/july/1343579505.jpg" alt="" />
<div class="info" >
<h2><a href="fetch?id=39" >Testing Preview Box Character Count max out on the total number</a></h2>
<p>Other things have to go here to show the preview seems like other things don't really fit<a href="fetch?id=39" >Click Here</a></p> </div>
</div>
感謝這個完美工作。 – user1557936 2012-08-03 11:31:13