Hi,
On the first page of my site, I want to insert the users IP address into a database. I made a command under server behaviors and put the following code under sql:
INSERT INTO visitor (IPAddress)
VALUES (IP)
Then down below in the variable section I put
IP as the name and
Request.ServerVariables("REMOTE_ADDR"
as the runtime variable.
When I run the page I get:
[Microsoft][ODBC Microsoft Access Driver] Syntax error in number in query expression '172.169.68.58'.
I have the field in the database set as number.
Does anyone see anything that I'm doing wrong?
I can post the code for the page if it helps.
Thanks,
Spencer
On the first page of my site, I want to insert the users IP address into a database. I made a command under server behaviors and put the following code under sql:
INSERT INTO visitor (IPAddress)
VALUES (IP)
Then down below in the variable section I put
IP as the name and
Request.ServerVariables("REMOTE_ADDR"
as the runtime variable.
When I run the page I get:
[Microsoft][ODBC Microsoft Access Driver] Syntax error in number in query expression '172.169.68.58'.
I have the field in the database set as number.
Does anyone see anything that I'm doing wrong?
I can post the code for the page if it helps.
Thanks,
Spencer