@JMRKERMar 17.2007 — #This should help: [code=php] <html> <head> <title>Table Display</title> <script type="text/javascript"> function MakeTable(tbl_limit) { document.write('<table border="1"><tr>'); var j = 1; for (i=0; i<tbl_limit; i++) { document.write('<td>'+j+'</td>'); if (j % 10 == 0) { document.write('</tr><tr>'); } j++; } document.write('</tr></table>'); }
</script> </head> <body onLoad="MakeTable('50')"> </body> </html> [/code] You could use the 'i' instead and remove the 'j' logic with a little tweak of the code.