Salve a tutti,
sto convertendo un sistema di gestione link, dall'uso di Access a MySQL come database.
Dopo aver sostituito tutti i rs.recordcount, ora trovo dei problemi nell'inserimento dati.
Attualmente:
<code>
Sub AddTheLink

txtLinkTitle = Replace(Request.Form("txtLinkTitle"),chr(34),"'")
txtLinkURL = Replace(Request.Form("txtLinkURL"),chr(34),"'")
txtLinkDescription = Replace(Request.Form("txtLinkDescription"),chr(34) ,"'")
txtLinkCategoryID = Replace(Request.Form("txtLinkCategoryID"),chr(34), "'")
txtLinkDateAdded = Replace(Request.Form("txtLinkDateAdded"),chr(34)," '")
txtEmail = Replace(Request.Form("txtEmail"),chr(34),"'")
txtLive = Replace(Request.Form("txtLive"),chr(34),"'")

Set RSj=Server.CreateObject("ADODB.RecordSet")
RSj.Open "Select * From Links", dbc, adOpenDynamic, adLockPessimistic, adCMDText

RSj.AddNew
RSj("LinkTitle")=txtLinkTitle
RSj("LinkURL")=txtLinkURL
RSj("LinkDescription")=txtLinkDescription
RSj("CategoryID")=txtLinkCategoryID
RSj("LinkDateAdded")=txtLinkDateAdded
Response.Write(txtEmail)
RSj("Email")=txtEmail
RSj("Live")=txtLive
RSj.Update

RSj.Close
Set RSj=Nothing
</code>

Ho osservato dei problemi in due righe:
qui "RSj("LinkDescription")=txtLinkDescription"
e qui "RSj("Email")=txtEmail"

Commentando questi due, non ho problemi..
Ho controllato il nome dei campi nel database, la correttezza nel form di invio (ma i dati vengono correttamente recuperati, ed eventualmente mostrati), tolto gli obblighi di presenza (Da NOT NULL a NULL), ho anche controllato che magari non siano parole riservate..
ma niente da fare.. :master:

Medesimo problema successivamente in un inserimento analogo:
in
<code>
RSj.AddNew
RSj("LinkID")=txtLinkID
RSj("Rating")=txtRating
RSj("IPAddress")=txtIPAddress
RSj("EmailAddress")=txtEmailAddress
RSj.Update
</code>
Ho dei problemi con "RSj("Rating")=txtRating"

Voi sapete dirmi perchè?

Grazie mille,
Riky