View Single Post
  #2 (permalink)  
Old 06-03-2009, 10:16 AM
wige's Avatar
wige wige is offline
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,651
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default 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.
Reply With Quote