Home  >  Article  >  Backend Development  >  php 换页后,序号又重新开始的有关问题 + 急

php 换页后,序号又重新开始的有关问题 + 急

WBOY
WBOYOriginal
2016-06-13 12:37:38872browse

php 换页后,序号又重新开始的问题 + 急急急 ?
$MYSQL->query("select cu.*,cy.name from customer cu,custtype cy where 1=1 and cu.code=cy.code limit 0,18");
for($i=1;$i $MYSQL->fetch($i);
$customerid=$MYSQL->data[customerid];  // 客户编号
$KSName=$MYSQL->data[KSName];  //  用户名称 - 简称
echo "

$i"; //序号
echo "$customerid";  // 客户编号
echo "$KSName"; //用户名称 - 简称
?>

我是每18 条记录换一页,在第一页序号是从 1 - 18 ,但是我切换到第2页时,序号又是从1 开始一直到第18,第3页同样如此,可能是因为我分页的缘故,我试 了,如果不分页时没有问题的,但是这里我不可能不分页的,求各位没有没好的方法解决这个问题。。



php php?换页后,序号的问题?
Statement:
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