Home » Demos » Nested repeat region (PHP / MySQL)

Nested repeat region (PHP / MySQL)

Presenting data into rows or columns is a standard action realized with a simple loop through your record set. Often the data have to be presented in a different order. This example shows a table where the results are provided into columns and rows. Each row holds a number of records from your database; if the number of columns is reached a new row will be used. If there are no more records empty cells will be created and the dynamic creation of cells and rows is ended after the last row has reached the maximum number of columns.

Download.com
Find the software you're looking for at Download.com...
HotScripts.com
HotScripts.com is an Internet directory that compiles...
PHP: Hypertext Preprocessor...
What is PHP? PHP is a widely-used general-purpose scripting...
MySQL AB
The world's most popular open source database...
World Wide Web Consortium...
W3C's nearly 400 member organizations lead the World...
PHPBuilder.com
A resource for PHP tutorials, templates, PHP manuals...
Regular Expression Library...
Regular Expression Library provides a searchable database...
Magpie RSS - PHP RSS Parser...
MagpieRSS is compatible with RSS 0.9 through RSS 1.0...
Dev Shed
Open Source Web Development Tutorials, articles and...
Homepage of the FPDF Library...
About: FPDF is a PHP class which allows to generate PDF...

Related PHP functions:

mysql_query | mysql_result | ceil | mysql_num_rows

Click here for the PHP script: Nested repeat region