Multicolumn Output from a Database with PHP
(Page 1 of 4 )
Putting your data into multiple columns with PHP is a snap. This tutorial will show you how it is done.
OK, so you know how to get your data out of a database and display it. But, it looks rather dull in a single column down the screen doesn't it? Today you will learn how to put that data into multiple columns. We will do this two different ways. The first we will display the data moving horizontally across the screen. Like so:
The second method we will display the data going vertically, like so:
I am going to make a couple assumptions during this tutorial. First, that you already understand how to query your data out of the database. Second, that you understand the basics of PHP.
OK, so on to the first method!
Next: Horizontal Display >>
More Database Articles Articles
More By Matt Wade