Hallo Liste,
ich verstehe das was nicht so ganz...
Ich habe ein Script auf meinem lokalen System gestestet... da hat es alles
getan, nur keine Mails versendet (weil die entsprechende Komponente nicht
installiert war.). Das ist aber nicht das Problem.
Jetzt wollte ich das mal auf den richtigen Server packen... gesagt, getan.
Nur jetzt folgendes:
Microsoft JET Database Engine-Fehler '80040e07'
Syntaxfehler in Datum in Abfrageausdruck '#26.11.01#'.
/cam/p3/shop/process.asp, Zeile 58
Der Code dazu:
imonth = Request.Form("expMonth")
iyear = Request.Form("expYear")
expDate = "28" & "/" & imonth & "/" & iyear
sqlAdd = "INSERT INTO
orders(ocustomerid,odate,orderamount,ocardtype,ocardno,"
sqlAdd = sqlAdd & "ocardname,ocardexpires,ocardaddress"
If Not Request.Form("shipaddress")="" then
sqlAdd = sqlAdd &
",oshipaddress,oshiptown,oshipzip,oshipstate,oshipcountry"
End If
sqlAdd = sqlAdd & ") VALUES("
sqlAdd = sqlAdd & Session("customerid") & ",#" & Date & "#," & intTotal
sqlAdd = sqlAdd & ",'" & Request.Form("paymentm") & "','" &
Request.Form("cardno") & "'"
sqlAdd = sqlAdd & ",'" & TwoSingleQ(Request.Form("cardname")) & "',#" &
expDate & "#"
sqlAdd = sqlAdd & ",'" & TwoSingleQ(Request.Form("cardaddress")) & " '"
If Not Request.Form("shipaddress")="" then
sqlAdd = sqlAdd & ",'" & TwoSingleQ(Request.Form("shipaddress")) & "'"
sqlAdd = sqlAdd & ",'" & TwoSingleQ(Request.Form("shiptown")) & " '"
sqlAdd = sqlAdd & ",'" & Request.Form("shipzip") & " '"
sqlAdd = sqlAdd & ",'" & Request.Form("shipstate") & " '"
sqlAdd = sqlAdd & ",'" & Request.Form("shipcountry") & " '"
End If
sqlAdd = sqlAdd & ")"
call openConn()
dbc.execute sqlAdd, intAffected <--- Zeile 58
Was ist hier nicht richtig. Ich sehe hier nichts falsches... oder �bersehe
ich etwas???
Gr��e,
Alexander Husic
| Oft Gefragtes: http://www.aspgerman.com/aspgerman/faq/
| [aspdebeginners] als [email protected] subscribed
| http://www.aspgerman.com/archiv/aspdebeginners/ = Listenarchiv
| Sie knnen sich unter folgender URL an- und abmelden:
| http://www.aspgerman.com/aspgerman/listen/anmelden/aspdebeginners.asp