PHP Table builder class

Hi I am looking for a php class that helps me avoid the tediousness of building html tables from my sql queries, any pointers? thanks

Building tables? You mean, just plain ol’ standard HTML tables? No bell/whistles?

So…

SELECT id, name FROM user

… would produce…


<table>
  <thead>
    <tr>
      <th>id</th>
      <th>name</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>1</td>
      <td>AnthonySterling</td>
    </tr>
  </tbody>
</table>

I would also like to activate for example sorting or odd/even different backgrounds.

Whilst not PHP, the jQuery DataTables plugin is pretty nice. Just render a standard table and let the plugin does its thing. :slight_smile:

ok I was looking for something like this

http://www.phpclasses.org/package/667-PHP-Class-for-easy-composing-complex-html-tables.html