Ciao a tutti ho un problema perche' devo andare a mettere in una table (in celle ben precise) dei dati presi da un mdb. Non riesco a far prendere in celle diverse record diversi, come posso fare? dove sbaglio? Vi allego il mio codice, grazie mille
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Organization Chart</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
dim strCode
strCode="innovatel"
dim intVolta
intVolta="0"
Set Conn=Server.CreateObject("ADODB.Connection")
strConn="driver={Microsoft Access Driver (*.mdb)}; "
strConn=strConn & " DBQ=" & Server.MapPath("mdb/database.mdb")
strConn=strConn & ";pwd=" & strCode
Conn.Open strConn
sql = "SELECT * FROM Staff"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sql, conn ,3,3
do while not(rs.eof)
if intVolta="1" then
end if
%>
<table width="650" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25" height="15"></td>
<td width="100"></td>
<td width="25"></td>
<td width="100"></td>
<td width="25"></td>
<td width="100"></td>
<td width="25"></td>
<td width="100"></td>
<td width="25"></td>
<td width="100"></td>
<td width="25"></td>
</tr>
<tr>
<td height="50"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td valign="top"><%=rs(5)%>
<%=rs(1)%></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="40"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="50"></td>
<td></td>
<td></td>
<td valign="top"><%=rs(5)%>
<%=rs(1)%></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<%
rs.movenext
loop
rs.Close
set rs = Nothing
conn.Close
set conn = Nothing
%>
</table>
</body>
</html>

Rispondi quotando

