Jump to content

table help


MDanz

Recommended Posts

how can i assign the number of columns and rows to a table depending on a variable?

 

This variable will be random number so i can't just use if statements and alot of <td></td>, when the range of the variable is between 1-200.

 

e.g.

if($v=2) {

\\display table columns and rows

 

}

 

i don't want to type a whole lot of <td></td> and <tr></tr> for each if statement. Is there a way around this, like with text area cols and rows?

Link to comment
https://forums.phpfreaks.com/topic/197955-table-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.