Table cell values

admin

Administrator
Staff member
Hi,<br />
I am just starting to learn html. I want to load table cells using a loop like a for loop and give cell values depending on some calculations. My problem is that I have not been able to find any example which uses loops to fill table. Can somebody direct me an example similar to my problem?<br />
<br />
thanks.<!--content-->Thanks.<br />
<br />
Part of my problem is solved. But now the big question is - how do I avoid giving 50 tr tags if I want 50 rows? In my case the number of rows depends on some user input ? Now if user wants to see 100 rows then what do I do? Isn't there any way of defing a table similar to array? i.e. all the rows have same structure but there are 'n' number of rows and I gave to give only one <tr> .<!--content-->
 
Back
Top