Salve a tutti, ho cercato tantissimo delle soluzioni in altri thread scritti, ma proprio non vuole funzionare questa connessione con query.
Per cominciare ho il file dove ho la connessione:
la query che non funziona è:codice:<% Dim MySQLSVR, MySQLPRT, MySQLUID, MySQLPWD, MySQLDB, MySQLOPT, DB_CONNECTIONSTRING, UploadPath, CSS ' UPDATE THESE VALUES for MySQL ******* MySQLSVR = "localhost" ' enter IP or hostname of MySQL server MySQLPRT = 3306 ' enter MySQL port (default 3306) MySQLUID = "username" ' enter Username (between quotes) MySQLPWD = "password" ' enter Password (between quotes) MySQLDB = "database" ' enter Active DataBase (between quotes) MySQLOPT = 16387 ' enter MyODBC options values (at least 16387) ' END OF UPDATE *** ' MySQL Version DB_CONNECTIONSTRING = "driver={MySQL ODBC 3.51 Driver};server="&MySQLSVR&";port="&MySQLPRT&";"_ & "uid="&MySQLUID&";pwd="&MySQLPWD&";database="&MySQLDB&";option="&MySQLOPT&"" %>
Ho trasferito tutto da WinXp a Win Server2003 e non so cosa cavolo abbia -.-codice:<% Set rs = Server.CreateObject("ADODB.Recordset") sql="SELECT * FROM accesso WHERE Username ='"& utente &"'" rs.Open sql, DB_CONNECTIONSTRING, 3, 3 %>
Errore:
La linea dell'errore 103 è la seguente:ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/home.asp, line 103
rs.Open sql, DB_CONNECTIONSTRING, 3, 3
Grazie![]()


Rispondi quotando
