Re: [PHP] SQL Result Set -> HTML Table Fragment (but Simple)

2006-07-25 Thread tedd
At 10:55 AM -0400 7/25/06, tedd wrote: At 12:46 AM -0400 7/25/06, Michael B Allen wrote: Ok, I've been tinkering a little. This isn't "simple" but it's not a lot of code either. Granted, and no offense, it isn't simple the way you've attempted it. You simply have three columns with these cond

Re: [PHP] SQL Result Set -> HTML Table Fragment (but Simple)

2006-07-25 Thread tedd
At 12:46 AM -0400 7/25/06, Michael B Allen wrote: Ok, I've been tinkering a little. This isn't "simple" but it's not a lot of code either. Granted, and no offense, it isn't simple the way you've attempted it. You simply have three columns with these conditions: 1. Is gray if odd; 2. Is a time

Re: [PHP] SQL Result Set -> HTML Table Fragment (but Simple)

2006-07-24 Thread Michael B Allen
Ok, I've been tinkering a little. This isn't "simple" but it's not a lot of code either. Basically the user supplies an array of "cell renderers" associated with column names. Each renderer is a function name that will be called to modify an array() representing an HTML TD element. The result is p

[PHP] SQL Result Set -> HTML Table Fragment (but Simple)

2006-07-24 Thread Michael B Allen
Anyone have a PHP fragment that just prints a very simple html table from the contents of a db result set? I don't want phpmyadmin or anything remotely that complex. I want something that simply extracts the header info and prints a basic HTML table. It should be about 10 lines of code I suspect. I