ho questo codice per inserire dei dati in database solo che mi da errore:
firefox mi da questo errore:codice:<% if Session("utente_vl") = "" then response.Redirect("index.asp") end if testo = Replace(Request("testo"),"'","''") titolo = Replace(Request("titolo"),"'","''") testo_inglese = Replace(Request("testo_inglese"),"'","''") titolo_inglese = Replace(Request("titolo_inglese"),"'","''") testo_spagnolo = Replace(Request("testo_spagnolo"),"'","''") titolo_spagnolo = Replace(Request("titolo_spagnolo"),"'","''") testo_tedesco = Replace(Request("testo_tedesco"),"'","''") titolo_tedesco = Replace(Request("titolo_tedesco"),"'","''") Set Conn = Server.CreateObject("ADODB.Connection") Conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("db/vldb.mdb") strsql = "INSERT INTO info (titolo, testo) VALUES ('" & titolo & "', '" & testo & "'), (titolo_inglese, testo_inglese) VALUES ('" & titolo_inglese & "', '" & testo_inglese & "'), (titolo_francese, testo_francese) VALUES ('" & titolo_francese & "', '" & testo_francese & "'), (titolo_spagnolo, testo_spagnolo) VALUES ('" & titolo_spagnolo & "', '" & testo_spagnolo & "'), (titolo_tedesco, testo_tedesco) VALUES ('" & titolo_tedesco & "', '" & testo_tedesco & "')" Conn.Execute strsql Conn.Close response.redirect("info_visualizza.asp") %>
la linea 17 è: Conn.Execute strsqlcodice:Punto e virgola (;) mancante alla fine dell'istruzione SQL. /admin/info_inserisci2.asp, line 17
se inserisco il punto e virgola alla fine mi da quest'altro errore:
Prevista fine istruzione
che devo fare?codice:/admin/info_inserisci2.asp, line 17 Conn.Execute strsql; ------------------^

Rispondi quotando
