php 获取当前url中参数abc的值
<?php$page=isset($_GET['page'])?$_GET['page']:1;$size=30;$start=($page-1)*$size;for($...
<?php
$page=isset($_GET['page'])?$_GET['page']:1;
$size=30;
$start=($page-1)*$size;
for ($i=1;$i<=$size;$i++){
$n=$start+$i;
printf('<div class="box photo col3 masonry-brick" >
<img src="./mingpian/ 此处怎么写/%03d.jpg" alt="Stanley" onClick="changOut(this)">
</div>',$n,$n);
}
if ($page>1) echo "<div class=box><a href=diy.php?action=post&diyid=1&page=".($page-1)."><IMG SRC=images/Previous.png ></a></div>";
echo "<div class=box><a href=diy.php?action=post&diyid=1&page=".($page+1)."><IMG SRC=images/Next.png></a></a></div>";
?> 展开
$page=isset($_GET['page'])?$_GET['page']:1;
$size=30;
$start=($page-1)*$size;
for ($i=1;$i<=$size;$i++){
$n=$start+$i;
printf('<div class="box photo col3 masonry-brick" >
<img src="./mingpian/ 此处怎么写/%03d.jpg" alt="Stanley" onClick="changOut(this)">
</div>',$n,$n);
}
if ($page>1) echo "<div class=box><a href=diy.php?action=post&diyid=1&page=".($page-1)."><IMG SRC=images/Previous.png ></a></div>";
echo "<div class=box><a href=diy.php?action=post&diyid=1&page=".($page+1)."><IMG SRC=images/Next.png></a></a></div>";
?> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询