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

Two methods for displaying horizontal repeating areas_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:05:26786browse

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...
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


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