Php horizontal repeat area display method 2-PHP Tutorial

Source: Internet
Author: User
Php horizontal repeat area display method 2. Method 1. note that there is a pre-defined Image record set rsmpic that needs to be repeated horizontally. please change it to your record set name based on your situation. neatly place the repeated content horizontally. Method 1. note that there is a pre-defined Image record set rsmpic that needs to be repeated horizontally. please change it to your record set name based on your situation. neatly place horizontally duplicated content in a table















$ NumberColumns = '3 ';$ Numrows = '3 ';While ($ numrows <> 0) AND (! $ Rsmpic-> EOF )){$ Startrw = $ endrw + 1;$ Endrw = $ endrw + $ numberColumns;?> EOF) {// start to repeat the content?> $ Startrw = $ startrw + 1;$ Rsmpic-> MoveNext ();} // the above content repeats the td content?> Wend ;}Method 2. drag the duplicate tag ), Add a variable, add 1 for each repeat, if % 3 is equal to 0 echo" ". Please take a closer look





Fields ('m _ path');?> "Border =" 0 ">

(Vertical repetition is in








";?>


.

Invalid. note that there is a pre-defined Image record set rsmpic that needs to be repeated horizontally. please change it to your record set name based on your situation. neatly repeat the content horizontally...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.