Create Tables Dynamically?
Posted: Mon May 01, 2006 11:24 pm
Hi everyone!
I am wondering how I can create a table dynamically based on wether a recordset is full or not.
Here's the details:
On this page I have php calling data from a mysql database and separating it into two recordsets. One recordset I have dynamically loading into a table with php. But for the other recordset I want to dynamically create a table to load the data in only if the recordset has something in it. Otherwise it won't create the table.
How would I do this? Can I use php to dynamically create tables? Or does html have a way to create tables dynamically? DHTML?
Any thought you have about this would be greatly appreciated!
THANKS!
-Mike
I am wondering how I can create a table dynamically based on wether a recordset is full or not.
Here's the details:
On this page I have php calling data from a mysql database and separating it into two recordsets. One recordset I have dynamically loading into a table with php. But for the other recordset I want to dynamically create a table to load the data in only if the recordset has something in it. Otherwise it won't create the table.
How would I do this? Can I use php to dynamically create tables? Or does html have a way to create tables dynamically? DHTML?
Any thought you have about this would be greatly appreciated!
THANKS!
-Mike