I thought I had hope but I was unable to get this to work http://www.phpfreaks.com/quickcode/Generic-table-display-for-SELECT-querys/669.php Ideally I would like my html column headers to be whatever I rename my query fields as for instance SELECT table AS booger I would like my html column name to be booger any ideas on how to accomplish this?