MySQL report
Informations
Author: Philip Clarke
License: Freeware
Description
This script is a variation on the Table with multi-page columns.
The difference is that when a query is executed initially the php loops through, gathers the
string widths and then resizes the columns to try and fit everything onto the page. If a column
never uses the maximum width alloted to it, the column is sized down and the saved space is
re-assigned to the other columns. The aim of this was to be able to get out a good looking mysql
report using as few a lines as possible, the disadvantage is that because the query has
to loop through the results to work out the column sizes, it takes a bit of time. To
counteract this, there is a dump option, that dumps out the php required to set up column
widths, so one could check with a small report that the columns looked okay, then apply
the dumped column widths to a larger report.