destoon实现调用自增数字从1开始的方法_PHP

WBOY
Release: 2016-05-31 19:30:13
Original
897 people have browsed it

本文示例讲述了destoon实现调用自增数字从1开始的方法,在进行数据调用的时候有一定的实用价值。希望对大家的destoon开发有所帮助。具体方法如下:

示例功能:destoon 调用自增数字 从1开始。

具体代码如下:

<!--{php $tags=tag("moduleid=14&length=46&condition=status=3&pagesize=10&order=hits desc&template=null");}--> 
               
{loop $tags $k $t}  
 <li>{php $k = ++$k;}  
   <a href="{$t[linkurl]}" rel="external nofollow" target="_blank" class="item"> 
     <span class="num">{$t[hits]}</span>  
     <i class="icon icon2">{$k++}</i>    
     <span class="txt f-ib f-thide">{$t[title]}</span> 
   </a>              
 </li>
{/loop}
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!