How to create HTML Table Dynamically

Hi,
    Any send some sample code of creating HTML Table dynamically

Regards
Bala

bala wrote:

Hi,
    Any send some sample code of creating HTML Table dynamically

It's very simple, just build a string. Did you even think about this before asking for someone to do it for you?

table = ["<table>"]
for row in data:
  table.append("<tr>")
  for item in row:
    table.append(st += "<td>%s</td>" % item)
  table.append("</tr>")
table.append("</table>")
tableStr = "\n".join(table)

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!