|
| HOMEPAGE | INDICE FORUM | REGOLAMENTO | ::. | NEI PREFERITI | .:: | RSS Forum | RSS News | NEWS web | NEWS software | |
| PUBBLICITA' | | | ARTICOLI | WIN XP | VISTA | WIN 7 | REGISTRI | SOFTWARE | MANUALI | RECENSIONI | LINUX | HUMOR | HARDWARE | DOWNLOAD | | | CERCA nel FORUM » | |
11-03-2002, 12.58.25 | #1 |
Senior Member
Registrato: 13-12-2000
Messaggi: 244
|
if........else
errore "80020009' Eccezione. /gemini/asp/s.asp, riga 14 pasto il codice: <% 'Apre il database dbfile = Server.MapPath("../dati/carrello.mdb") Set Con = Server.CreateObject( "ADODB.Connection" ) con.connectionstring="DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & dbfile & ";" Con.Open sqlString = "SELECT * FROM carrello WHERE codice like '" & Request.cookies("codice") & "%'" Set RS = Server.CreateObject( "ADODB.Recordset" ) RS.ActiveConnection = Con RS.Open sqlString if rs("codice") = "" Then 'riga 14 Response.Cookies("data") = Request.Form("data") Set objrs = CreateObject("ADODB.Recordset") Set objrs.ActiveConnection = Con objrs.LockType = 2 objrs.open "SELECT * FROM carrello" objRS.AddNew objrs("id_utente") = Request.Cookies("id") objrs("data") = Request.Form("data") objrs("articolo") = Request.Form("tipo") objrs("foto") = Request.Form("foto") objrs("quantita") = Request.Form("pezzi") objrs("codice") = Request.Cookies("id") objrs("id_articolo") = Request.Form("id_ar") objRS.Update objRS.Close Set objRS = Nothing Con.Close Set Con = Nothing Else ecc qua funge da dio dove sbaglio??????? grazieeeee
___________________________________
...combatterono come poeti guerrieri, combatterono come scozzesi, e si guadagnarono la liberta'... www.openbeer.it Openbsd rivive ! |
17-03-2002, 15.42.42 | #2 |
Junior Member
Registrato: 03-01-2001
Messaggi: 161
|
Non è che rs("codice") sia un numero ??? un numero non puo essere uguale a ""
Bye !!
___________________________________
La pazzia ci coglierà nel sonno !! |
Utenti attualmente attivi che stanno leggendo questa discussione: 1 (0 utenti e 1 ospiti) | |
Strumenti discussione | |
|
|