Build html table from content of array created from SQL qury
Posted: Tue Feb 08, 2011 4:24 am
Hi there,
I'm returning to programming after 15+ years of doing other things
I could do with some help, I've decided to jump into PHP, I like it, my previous languages were things like Visual Basic, Dbase and Foxbase 2.11 (anyone ?!)
I've created a MySQL database and tables and I can pull data from the tables into an array, no problem, however I'm running into difficulties when trying to create an HTML table from that data. Ideally I want to step through the array and reformat some of the data before displaying it in an html table. All of the tutorials I've managed to find are largely about building a dynamic html table, read in data, spit out data, done ! I want to read in data, reformat some of the data, or display a symbol based on the contents of the data and then build an html table that I have control of, IE: I say how big the cells are etc.
Could anyone point me in the direction of such a tutorial ?
Many Thanks
Judda
I'm returning to programming after 15+ years of doing other things
I could do with some help, I've decided to jump into PHP, I like it, my previous languages were things like Visual Basic, Dbase and Foxbase 2.11 (anyone ?!)
I've created a MySQL database and tables and I can pull data from the tables into an array, no problem, however I'm running into difficulties when trying to create an HTML table from that data. Ideally I want to step through the array and reformat some of the data before displaying it in an html table. All of the tutorials I've managed to find are largely about building a dynamic html table, read in data, spit out data, done ! I want to read in data, reformat some of the data, or display a symbol based on the contents of the data and then build an html table that I have control of, IE: I say how big the cells are etc.
Could anyone point me in the direction of such a tutorial ?
Many Thanks
Judda