Home > Backend Development > PHP Tutorial > Two methods for displaying horizontal repeating areas_PHP tutorial

Two methods for displaying horizontal repeating areas_PHP tutorial

WBOY
Release: 2016-07-20 11:05:26
Original
814 people have browsed it

Method 1. Note that there is a predefined picture record set rsmpic. The pictures that you want to repeat horizontally are the pictures. Please change the name of your record set according to your situation. Neatly put the horizontally repeated content in a table




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


EOF)) { //Start repeating content?>



$startrw = $startrw 1;
$rsmpic->MoveNext ();}//The above repeats td content?>



Wend; } // End of duplicate content?>



< td>






Method 2. Drag the duplicate mark outside the (vertical repetition is outside the ), and add a Variable, increment by 1 every time it is repeated, if %3 is equal to 0 echo a "" . Please look carefully







< ?php do { //Start repeating?>


"; ?> ;





www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445123.htmlTechArticleMethod 1. Note that there is a predefined picture record set rsmpic. The pictures you want to repeat horizontally are pictures. Please follow your to your recordset name. Neatly place the horizontal repeating content...
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


.< ;?php echo $row_Recordset1['NAME']; ?>