Caricamento in corso

' ... a fine pagina ... ' ' ' REGOLE: ' - NO Option Explicit qui ' - Dim conn sta QUI, non nelle pagine ' - Dopo l'include, conn e' GIA' APERTA ' ====================================================== ' --- CONFIGURAZIONE - MODIFICA SOLO QUI --- Const DB_SERVER = "89.46.68.100" Const DB_NAME = "Sql278100_1" Const DB_USER = "Sql278100" Const DB_PASS = "ecbfe61a" ' -------------------------------------------- Dim conn ' ------------------------------------------------------ ' ApriConnessione() ' Prova i driver in ordine, restituisce connessione APERTA. ' ------------------------------------------------------ Function ApriConnessione() Dim arrDriver, i, sDriver, sConnStr, oConn arrDriver = Array( _ "MySQL ODBC 5.3 ANSI Driver", _ "MySQL ODBC 5.3 Unicode Driver", _ "MySQL ODBC 3.51 Driver", _ "MySQL", _ "MySQL ODBC 8.0 ANSI Driver", _ "MySQL ODBC 8.0 Unicode Driver" _ ) For i = 0 To UBound(arrDriver) sDriver = arrDriver(i) On Error Resume Next Err.Clear Set oConn = Server.CreateObject("ADODB.Connection") oConn.ConnectionTimeout = 15 oConn.CommandTimeout = 30 sConnStr = "Driver={" & sDriver & "};" & _ "Server=" & DB_SERVER & ";" & _ "Database=" & DB_NAME & ";" & _ "Uid=" & DB_USER & ";" & _ "Pwd=" & DB_PASS & ";" & _ "Option=3;" oConn.Open sConnStr If Err.Number = 0 Then On Error Goto 0 Set ApriConnessione = oConn Exit Function End If On Error Resume Next oConn.Close Set oConn = Nothing On Error Goto 0 Next Response.Write "

Errore connessione al database. Riprova piu tardi.

" Response.End End Function Function ChiudiConnessione(oConn, oRs) On Error Resume Next If IsObject(oRs) Then If oRs.State = 1 Then oRs.Close Set oRs = Nothing End If If IsObject(oConn) Then If oConn.State = 1 Then oConn.Close Set oConn = Nothing End If On Error Goto 0 End Function ' ------------------------------------------------------ ' AUTO-APERTURA - QUESTA E' LA PARTE CHE MANCAVA ' Appena includi questo file, conn viene aperta subito, ' come faceva il tuo vecchio conn.asp. ' Le tue 1000 pagine non devono cambiare nulla. ' ------------------------------------------------------ Set conn = ApriConnessione() %>

Microsoft VBScript runtime error '800a01a8'

Object required: ''

/modelli/conteggi.asp, line 8