Just nu i M3-nätverket
Jump to content

Det saknas något..


Mats.

Recommended Posts

Jag har fått ett tips hur jag skall kunna logga besökares ip-adresser men jag får det inte att fungera. Någon som vet hur varför ?

 

<%

 

' Variabel för IP address

ip = request.servervariables("remote_addr")

 

' Öppna mot databasen vars ODBC DSN heter Iptrack

 

Set OBJdbConnection = Server.CreateObject("ADODB.Connection")

 

OBJdbConnection.Open "DSN=Iptrack"

 

sql = "INSERT INTO ipnummer (ip) VALUES ('"& ip &"')"

 

' lägg in ip-nuffran

OBJdbConnection.Execute(sql)

 

'Stäng ODBC-kopplet

OBJdbConnection.Close

 

%>

 

/Mats

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...