Ho già risoltobastava togliere le virgolette ...<%rs(nome)%> però ora il problema che mi da è questo
Microsoft VBScript compilation error '800a03f6'
Expected 'End'
/ivanissimo/classifica.asp, line 63
il codice rieccolo
codice:<html> <head> <title>Classifica punti</title> </head> <body> <table border="0" widht="100"> <tr> <td widht="25%">Nome</td> <td width="25%">Punti</td> </tr> <% ' riconosce i campi della form nome = request.form("nome") punti = request.form("punti") 'verifica che i campi siano stai compilai correttamente if len(nome)> 0 AND len(punti) > 0 THEN response.write "Torna indietro e compila tutti i campi correttamente" else ' apre la connesione al database Dim conn,strconn,DBQ Set conn = Server.CreateObject("ADODB.Connection") DBQ = Server.MapPath("../mdb-database/classifica.mdb") strconn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & DBQ conn.open strconn set rs = Server.CreateObject("ADODB.Recordset") conn.Execute(SQL) SQL="SELECT Nome FROM Classifica WHERE Nome = '" & Nome & "'" if (rs.eof) then SQL_Inserisci = "INSERT into Classifica(Nome,Punti) values ('" & Nome & "'," & Punti & ")" conn.Execute(SQL_Inserisci) else SQL_Update = "Update Classifica SET Punti = " & Punti & " WHERE Nome= '" & Nome & "'" conn.Execute(SQL_Update) Response.Redirect("classifica.asp") end if %> <tr> <td widht="25%"><%rs(nome)%></td> <td width="25%"><%rs(punti)%></td> </tr> <% rs.movenext rs.Close set rs= nothing conn.Cloese set conn= nothing %> </table> </body> </html>

bastava togliere le virgolette ...<%rs(nome)%> però ora il problema che mi da è questo
Rispondi quotando