Home > php教程 > php手册 > php横向重复区域显示二法

php横向重复区域显示二法

WBOY
Release: 2016-06-13 12:26:26
Original
1069 people have browsed it

方法一. 注意这里有一个预先定义的图片记录集rsmpic 要横向重复的就是图片,请根据你的情况改为你的记录集名称.整齐地将横向重复内容放在一个表格内


$numberColumns = '3';
$numrows = '3';
while(($numrows 0) AND (!$rsmpic->EOF))
{
$startrw = $endrw + 1;
$endrw = $endrw + $numberColumns;?>

EOF)) { //开始重复内容?>

$startrw = $startrw + 1;
$rsmpic->MoveNext();}//以上重复td内容 ?>

Wend; }
方法二. 将重复标记拖到外),加入一个变量, 每重复 1 次加 1, 如果%3等于0 echo 一个"" . 请仔细看





php横向重复区域显示二法

外(纵向重复是在





"; ?>




.
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template