Provato anche questo: niente da fare!![]()
Il server (Jabry, free) mi dà questo errore:
questo il codice usato:Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x1afc Thread 0x3218 DBC 0x9f32044 Jet'.
/nomemio/db/clicks.asp, line 54
codice:<% ' Value for the url being requested url=trim(request.querystring("url")) ' if no url is detected then show then ' show a page with links if url="" then %> <html> <title>CodeAve.com(Count Clicks to a Db)</title> <head> <base target="_blank"> </head> <body bgcolor="#FFFFFF"> <a href="clicks.asp?url=http://www.yahoo.com">Yahoo</a> <br> <a href="clicks.asp?url=http://www.aol.com">AOL</a> <br> <a href="clicks.asp?url=http://www.excite.com">Excite</a> <br> <a href="clicks.asp?url=http://www.mail2web.com">Mail2Web</a> <br> <a href="clicks.asp?url=http://www.aspin.com">ASPIn</a> <br> <a href="clicks.asp?url=http://www.sas.com">SAS</a> </body> </html> <% ' if there is a url value detected add it to the db ' and redirect the browser to the url else %> <% ' Varible for the PC IP address ip=request.servervariables("remote_addr") ' name of the db that will track the clicks accessdb="clicks.mdb" ' Build a connection to the db cn="DRIVER={Microsoft Access Driver (*.mdb)};" cn=cn & "DBQ=" & server.mappath(accessdb) ' Create a server record set object set rs = server.createobject("ADODB.Recordset") ' SQL statement that will insert the url and the ip address sql = "insert into clicks (url,ip) values('"& url &"','"& ip &"')" ' insert the values into the db rs.open sql, cn ' kill the recordset set rs=nothing ' redirect to the url response.redirect url %> <% end if ' end check for a url value %>

Rispondi quotando
