我有三個標籤,其內容。內容是來自MySQL表的記錄。如何更改MYSQL PHP中所選數據的限制?
<ul class="nav nav-pills nav-pills-nostyle" id="tabnavBar" style="border-top: thin solid #000000; border-bottom: thin solid #000000; ">
<li class="active"><a data-toggle="pill" id="tab1" href="#tab1" style="border-right: thin solid #000000;">Tab 1 <img src="assets/images/infoico.png" width="20" height="20"></a></li>
<li><a data-toggle="pill" id="tab2" href="#tab2" style="border-right: thin solid #000000;">Tab 2 <img src="assets/images/infoico.png" width="20" height="20"></a></li>
<li><a data-toggle="pill" id="tab3" href="#tab3" style="border-right: thin solid #000000;">Tab 3 <img src="assets/images/infoico.png" width="20" height="20"> </a></li>
</ul>
我如何保存我在這三個選項卡有限行的內容。
首先是0-9。
秒是10-19。
三是20-29。
我只是試圖簡單的數據檢索查詢。
<?php $sql = "select * from datab limit 0,9"
while($row = mysqli_fetch_assoc($sql))
{
echo $row;
}
?>
如何使用這個$sql
其他兩個選項卡。
調整的極限? – cmorrissey
你自己在你的查詢中使用了'limit 0,9'。適應你感興趣的數據塊。 – arkascha
如何?當我更改標籤時,限制也應該改變。我想保留第一個標籤記錄,因爲它是在檢索時。 – mahesh