Issue with getting visitors' ip addresses
Hello, this is my first post in Webmasterforums. I have a poll website where visitors vote for something, and to make sure they don't vote multiple times, I'd like to get their ip addresses. In my PHP script, I get the visitor's ip address with $_SERVER['REMOTE_ADDR']; but when my PHP script sends the float value to my mysql database (which I access with phpmyadmin), it gives me a six digit number instead of that of a regular ip address. When I test it myself without sending anything to mysql, it returns my full ip address (displaying it in my browser), but that's not the case when I send it to mysql. I obviously declared a 9 or 12 character value for the table element in mysql. And when I send my own ip to mysql, it returns the same 6 digit number. I have no idea what I'm doing incorrectly. Thanks for any answer.
|