PHP Classes

SQL Table: Output SQL query results as HTML tables

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 50%Total: 2,671 All time: 1,432 This week: 455Up
Version License PHP version Categories
sqltable 0.8GNU Lesser Genera...4.0HTML, Databases


This class is meant to output SQL database query results as HTML tables.
It supports displaying a limited range of query result rows per page with buttons to navigate between multiple pages in case the query returned more rows than the specified limit per page.
This class is tested deeply with MySQL and Microsoft SQL server but it may already support other databases.
It allows the customization of the table column headers, turn values into links to other pages or hide certain columns, have javascript onclick events or merge the content of multiple columns into one.

Picture of Peter Klauer
Name: Peter Klauer <contact>
Classes: 18 packages by
Country: Germany Germany
Age: 65
All time rank: 352 in Germany Germany
Week rank: 301 Down14 in Germany Germany Down
Innovation award
Innovation award
Nominee: 3x

  • Katalog1.gif
  • Katalog2.gif
  • sqltable.jpg
  Files folder image Files  
File Role Description
Plain text file class_sqltable.php Class The class file
Accessible without login Plain text file multiplecell.txt Doc. How to have multiple values per cell
Plain text file sqltable.txt Doc. how to use the class and example
Plain text file CHANGELOG.txt Doc. Changes from 2006-2010
Plain text file License_LGPL-3.0.txt Lic. LGPL License

 Version Control Reuses Unique User Downloads Download Rankings  
This week:0
All time:1,432
This week:455Up
 User Ratings  
 All time