codice:
set rstcategorie = dbconn.execute(sql)
dbconn.close
Che fai? apri il recordset e chiudi la connessione senza stampare nulla?
Devi fare una cosa di questo tipo:
codice:
<%
Set dbconn = server.createobject("adodb.connection")
dbconn.Open(application("strconn"))
Set rstCategorie = server.createobject("adodb.recordset")
dim sql
SQL = "SELECT * FROM parco_auto"
set rstCategorie = dbconn.Execute(SQL)
if not rstCategorie.EOF then
response.write "<TABLE BORDER=0><tr>"
For i=0 to rstCategorie.Fields.Count-1
response.write "<td>" & rstCategorie.fields(i).Name & "</td>"
Next
response.write "</tr>"
rstCategorie.MoveFirst
While not rstCategorie.EOF
response.write "<tr>"
For i=0 to rstCategorie.Fields.Count-1
response.write "<td>" & rstCategorie(i) & "</td>"
Next
response.write "</tr>"
rstCategorie.MoveNext
Wend
response.write "</TABLE>"
End if
Set rstCategorie=Nothing
dbconn.Close
%>
L'ho scritto di getto, potrebbe contenere strafalcioni