Sie sind auf Seite 1von 2

View.

asp
<!-- -->
<html dir="rtl">
<head>
<title></title>
<head>
<body>
<table border="1" cellpadding="4">
<tr bgcolor="yellow">
<td>

</td>
<td>

</td>
<td>

</td>
<td>

</td>
</tr>
<%
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "DSN=myDSN"
Set oRS = Server.CreateObject("ADODB.Recordset")
mySQL = "SELECT * FROM tMem"
oRS.Open mySQL, oConn, 2, 2
%>
<tr>
<td>
<% Response.Write oRS.Fields("first").Value %>
</td>
<td>
<%Response.Write oRS.Fields("family").Value %>
</td>
<td>
<span dir="ltr">
<% Response.Write oRS.Fields("birth_year").Value %>
</span>
<td align="left">
<span dir="ltr">
<% Response.Write oRS.Fields("mail").Value %>
</span>
</td>
</tr>
<%
oRS.Close
Set oRS = Nothing
oConn.Close
Set oConn = Nothing
%>
</table>
</body>
</html>

ViewAll.asp
<!-- -->
<html dir="rtl">
<head> <title></title> </head>
<body>
<table border="1" cellpadding="4">
<tr bgcolor="yellow">
<td>

</td>
<td>

</td>
<td>

</td>
<td>

</td>
</tr>
<%
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "DSN=myDSN"
Set oRS = Server.CreateObject("ADODB.Recordset")
mySQL = "SELECT * FROM tMem"
oRS.Open mySQL, oConn, 2, 2
Do Until oRS.EOF
Response.Write "<tr>"
Response.Write "<td>"
Response.Write oRS.Fields("first").Value
Response.Write "</td>"
Response.Write "<td>"
Response.Write oRS.Fields("family").Value
Response.Write "</td>"
Response.Write "<td>"
Response.Write "<span dir='ltr'>"
Response.Write oRS.Fields("birth_year").Value
Response.Write "</span>"
Response.Write "</td>"
Response.Write "<td align='left'>"
Response.Write "<span dir='ltr'>"
Response.Write oRS.Fields("mail").Value
Response.Write "</span>"
Response.Write "</td>"
Response.Write "</tr>"
oRS.MoveNext
Loop
Response.Write "</table>"
oRS.Close
Set oRS = Nothing
oConn.Close
Set oConn = Nothing
%>
</body>
</html>

Das könnte Ihnen auch gefallen