I am trying to create a Dynamic HTML page which queries an Oracle Database, placing its values within a HTML table. I have attempted to write code to perform this action but am running into problems. Any responses would be greatly appreciated. I am using an ADO Recordset to loop through DB. I recieve errors involving the Do...While...Loop:
Thanks
-vza
Code:
<p align = "center">
<b> PI/GIS Validation Table <b>
</p>
<TABLE
Id = "PI_GISTable"
Align = "center"
Border = "1"
Bordercolor = "black"
Cellpadding = "2"
Cellspacing = "0"
Width = "500">
<TBODY>
<tr>
<th align = "middle" Bordercolor = "black"> NTAG </th>
<th align = "middle" Bordercolor = "black">TAG /th>
<th align = "middle" Bordercolor = "black" > Descriptor </th>
<th align = "middle" Bordercolor = "black" > Location </th>
<th align = "middle" Bordercolor = "black" > Point ID </th>
</tr>
<Script Language = "vbscript"> Rs.Open "Select * From PI_GIS",Cn </Script>
<Script Language = "vbscript"> Do While Not RS.EOF </Script>
<tr>
<td align = "Center"> <Script Language = "vbscript"> = Rs.Fields!NTAG </Script> </td>
<td align = "Center"> <Script Language = "vbscript"> = Rs.Fields!TAG </Script> </td>
<td align = "Center"> <Script Language = "vbscript"> = Rs.Fields!DESCRIPTOR </Script> </td>
<td align = "Center"> <Script Language = "vbscript"> = Rs.Fields!LOCATION </Script> </td>
<td align = "Center"> <Script Language = "vbscript"> = Rs.Fields!POINTID </Script> </td>
</tr>
<Script Language = "vbscript">
RS.MoveNext
Loop
Rs.Close
</Script>
</TBODY>
</TABLE>
Thanks
-vza