WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this Article to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES SUBMIT AN ARTICLE PRINT
Title : Multicolumn Output from a Database with PHP
Categories : PHP, Databases, HTML and PHP, MySQL
codewalkers
codewalkers
Date : 2003-06-28
Grade : 3 of 5 (graded 2 times)
Viewed : 15368
Search : More Articles by codewalkers
Action : Grade This Article
Tools : My Favotite Articles


Submit your own code examples 
 


Intro

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:


1 2
3 4
5 6
7 8


The second method we will display the data going vertically, like so:


1 5
2 6
3 7
4 8




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!


Read More...









Alternating row colors with PHP and mySQL
Categories : PHP, Databases, MySQL, HTML and PHP
How To add paging (Pagination) with PHP and MySQL
Categories : PHP, Beginner Guides, Databases, MySQL, HTML and PHP
Saving Images in MySQL
Categories : MySQL, PHP, Graphics, Databases
Watching The Web
Categories : PHP, Databases, MySQL, HTTP, MD5
Referer Statistics
Categories : PHP, MySQL, HTTP, Databases
Beginners guide to PHP and MySQL
Categories : PHP, Beginner Guides, Databases, MySQL, Installation
Descriptions of Common Data Types
Categories : MySQL, Databases, PHP, PHP options/info, General
Creating an IE-Only Database Driven Menu System With PHP, MySQL and DHTML
Categories : PHP, MySQL, Databases, DHTML
Case Study: Handling MySQL Growth With a PHP Class
Categories : Databases, MySQL, PHP
PHP, MySQL and Authentication 101
Categories : PHP, Databases, MySQL, Authentication
Building A Persistent Shopping Cart With PHP and MySQL
Categories : PHP, MySQL, Databases, Ecommerce
Practical Date and Time examples with PHP and MySQL
Categories : Databases, MySQL, PHP, Date/time
Miles To Go Before I Sleep...
Categories : PHP, Calendar, Databases, MySQL
Simple Connection to MySQL with PHP
Categories : PHP, MySQL, Databases
tracking where and what on your site people are clicking
Categories : PHP, MySQL, HTML and PHP, HTML