I'm trying to display a database table in HTML using VB Script.
I've set up a script that accesses my database, built a string called sResults that contains HTML formatted table commands, ie.
sResult = "<TR><TD style='font-size: 10pt;'>" & Recordset.field(0) & "<TD>"
sResult = sresult & "<TD style='font-size: 10pt;'>" & Recordset.field(1) & "</TD></TR>"
Then I've placed the following...
<BODY>
<TABLE border="1">
<TR>
<TD><B>Column1</B></TD>
<TD><B>Column2</B></TD>
</TR>
<%=sResults>
</TABLE>
</BODY>
</HTML>
But it wont show the results from the recordset. The column headers come up, but, outside the table, the string <%=sResults> appears, as is.
I'm new to HTML, so please forgive my ignorance - but I can't figure out what I'm doing wrong.
Thanks for your help
I've set up a script that accesses my database, built a string called sResults that contains HTML formatted table commands, ie.
sResult = "<TR><TD style='font-size: 10pt;'>" & Recordset.field(0) & "<TD>"
sResult = sresult & "<TD style='font-size: 10pt;'>" & Recordset.field(1) & "</TD></TR>"
Then I've placed the following...
<BODY>
<TABLE border="1">
<TR>
<TD><B>Column1</B></TD>
<TD><B>Column2</B></TD>
</TR>
<%=sResults>
</TABLE>
</BODY>
</HTML>
But it wont show the results from the recordset. The column headers come up, but, outside the table, the string <%=sResults> appears, as is.
I'm new to HTML, so please forgive my ignorance - but I can't figure out what I'm doing wrong.
Thanks for your help