Home > php教程 > php手册 > body text

横向重复区域显示二法

WBOY
Release: 2016-06-13 11:21:28
Original
1355 people have browsed it

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




$endrw = $HLooper1__index;
$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 一个" " . 请仔细看










"; ?>






.

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