Re: Storing IP location in Mysql database
IP addresses are generally stored as text because you can not store them as numbers without doing a lot of conversion to remove the decimals. On the form that is entering the information into the database, simply add the user IP from the environment variable, $_SERVER['REMOTE_ADDR'].
__________________
The best way to learn anything, is to question everything.
|