More on displaying table data Nov30 '06
I've discussed before the crux of quickly displaying database data in a format that users can understand and absorb.
Ideally, we're talking about a front end for a database table.
After all, raw database data is nothing to look at.
That's why there are tools that help display this data, in a format that people can understand, such as an Excel spreadsheet. An Excel spreadsheet (with rows and columns) is a perfect "visual representation" of what a database would look like. If you give someone an Excel spreadsheet with column headers, and rows of data, they're very likely going to understand the representation of the data.
Excel is just one option for viewing database data. Other tools range from web-based configuration tools, such as phpMyAdmin, and other desktop applications such as Crystal Reports. Crystal, specifically, allows you to perform "grouping" functions, and create reports that "shows" your data in any number of customized templates. However, I'm not looking for something that extensive.
What I'd like is a quick way to display the data as an HTML table, without having to do all of the coding involved.
Here's what I picture:
<?php
$viewTableData = new HtmlTableViewer;
$viewTableData -> Query( "SELECT * FROM myTable" );
?>
We could pass the SQL query to the fictional class (HtmlTableViewer), which then queries the database, and outputs all of the data in HTML, with options for sorting, filtering, and searching.
Without the fictional class taking care of the details - the coding manpower taken to re-create such an HTML page from scratch is far beyond my means right now.
In this highly-automated world, I am used to just providing the most scant of details, and in turn, receiving a lot back. This is a prime example of where I need this type of automation.
Categories: Data
, Excel
, HTML
, MySQL
, Web Development ![]()
Add Feedback (view all)
Leave feedback
matthom
is published and produced by Matt Thommes - an independent publishing enthusiast, mobile blogger, content creator, informative writer, web developer from a suburb of Chicago.
Never one to conform, Matt intends to promote the effect the web has on our lives, in an effort to intensify, instruct, and clarify all that is happening around us.
- MySQL integer columns and display width
- Daring Fireball RSS feed in Safari
- Brightkite suggests Twitter instead of 404
Popular Pages
- Fast rounded corners in Photoshop (3954 recent visits)
- PHP – passing variables across pages (1485 recent visits)
- JavaScript set selected on load (1208 recent visits)
- Removing all child nodes from an element (827 recent visits)
- iPod songs out of order? (719 recent visits)
- Britney - Everytime piano tab (649 recent visits)
- Firefox 3 smart address bar: wildcard search (607 recent visits)
- MySQL LEFT JOIN syntax (512 recent visits)
- Breathe Me - Sia (501 recent visits)
- Tumblr: how blogging should be (384 recent visits)
Similar Entries
- Using JavaScript to obtain data from HTML and XML (31 recent visits)
- Edit IPTC data before uploading to Flickr (14 recent visits)
- Recap: Backing up your data with online storage (4 recent visits)
- Zip codes and data (0 recent visits)
- Table rendering and table–layout (42 recent visits)
- Displaying table data (57 recent visits)
Stats
0 unique visits since Nov30 '06
How about something like this. I thought about making a class to do it but I can't give you everything. <?php $query = mys ... Read more.