Originariamente inviato da santino83_11_04
evidentemente quando li stampi hai sbagliato il codice per stamparli....vediamo un estratto di quel codice visto che mi pare che da solo non ci riesci a capire il problema
ti ringrazio tanto!
il codice della pagina è il seguente:
codice:
<%
if session("nomeutente") = "" then
response.redirect "erroreLogin.asp"
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title> Prenotazioni. </title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="HAPedit 3.1">
<meta http-equiv="refresh" content="20" />
<style type="text/css">
@import url("stile.css");
</style>
</head>
<body>
<form name="sett" method="post" action="settimana.asp">
<%
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)};" &_
"DBQ="& Server.MapPath("dati.mdb")
sql = "select * from settimana ORDER BY ID1 asc"
set rs = conn.execute(sql)
%>
SELEZIONA LA SETTIMANA:
(Settimana selezionata:
<%
response.write (session("set"))
%>
)
<select name="settimana"><%
do until rs.eof%>
<option<%if (FormatDateTime(rs("inizio"),2) = session("set")) then%> selected<%end if%> value="<%=FormatDateTime(rs("inizio"),2)%>"> Lunedì <%=rs("inizio")%> </option><%
rs.movenext
loop%>
</select>
<%
Rs.Close
Set Rs = Nothing
Conn.Close
Set Conn = nothing
%>
<input type="submit" name="invia" value="Conferma" title="Invia i dati." /> </form> </div>
<div id="footer">
<%
inizio = session("set")
if session("set") <> "" then
cont = 0
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)};" &_
"DBQ="& Server.MapPath("dati.mdb")
inizio = Month(inizio)&"/"&Day(inizio)&"/"&Year(inizio)
sql = "select TOP 25 * from consulente WHERE [data] >= #" & inizio &"# ORDER BY DATA"
set rs = conn.execute(sql)
do until rs.eof
If (cont = 0) Then
%>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td > </td>
<td > <%response.write (rs("data"))%> </td>
<td > <%response.write (rs("data")+1)%> </td>
<td > <%response.write (rs("data")+2)%> </td>
<td > <%response.write (rs("data")+3)%> </td>
<td > <%response.write (rs("data")+4)%> </td>
</tr>
<%
end if
if (cont = 0) then
%> <tr> <td> 09.30 - 11.00 </td> <%
end if
if (cont = 5) then
%> <tr> <td> 11.00 - 12.30 </td> <%
end if
if (cont = 10) then
%> <tr> <td> 13.30 - 15.00 </td> <%
end if
if (cont = 15) then
%> <tr> <td> 15.00 - 16.30 </td> <%
end if
if (cont = 20) then
%> <tr> <td> 16.30 - 18.00 </td> <%
end if
if rs("testo") <> "" Then
%> <td class="a1" bgcolor = "red">
&idG=<%=rs("data")%>"> <%=rs("testo")%>
</td><%
Else
%>
<td bgcolor = "green">
<a href="prenota.asp?idF=<%=rs("Fascia")%>&idG=<%=rs("data")%>"> 00.00 - 00.00
</a>
</td>
<%
end if
cont = cont + 1
rs.movenext
if (cont mod 5 = 0) then
response.write("</tr>")
end if
loop
Rs.Close
Set Rs = Nothing
Conn.Close
Set Conn = nothing
end if
%>
</table>
</div>
</body>
</html>
Tutto il codice e il DB invece è a questo url:
CODICE