Home > Backend Development > PHP Tutorial > Dont stop til you get enough php horizontal repeating area display two methods

Dont stop til you get enough php horizontal repeating area display two methods

WBOY
Release: 2016-07-29 08:38:53
Original
1035 people have browsed it

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


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






<

Variable, add 1 every time it is repeated, if %3 is equal to 0 echo a "" . Please look carefully





"; ?>




.

The above introduces the two methods of displaying Dont stop til you get enough horizontal repeating areas in PHP, including the content of Dont stop til you get enough. I hope it will be helpful to friends who are interested in PHP tutorials.


Related labels:
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