This simple tutorial will show you how to output the details of a MySQL database to a HTML table using PHP in just a few simple steps.
First of you'll need my formatfilesize() function;
for this script to work you will obviously need to connect to your MySQL server and select the database you wish
to output. Then run this query:
The above query gives us access to all the table names in this database. We'll need these names later on.
Now set up a HTML table with a columns for each of the values we will output:
These resources are provided free of charge. If, however, you would like to make a donation to help finance these resources, no matter how big or small, please use the PayPal
button below.
Credits
This resource was written by Tim Bennett Bsc (Hons). Tim Bennett has a First Class Degree in
Multimedia Systems Computing
from Leeds Metropolitan University. He works as a freelance multimedia developer under the company name
Texelate creating free and
commissioned
high-quality multimedia solutions. Find out more by visiting the portfolio section and viewing his blog. If
you'd like to request a resource get in touch!
Rate this Resource
Click on the appropriate star below to rate this resource: