apw Posted August 23, 2012 Share Posted August 23, 2012 Hello Hello i have 2 quesstions that maybe someone can assist me with. I have a register and login page on my site and was wondering how do I get the persons IP address? My second question is Once i have this IP how do I use php to store this ip into my sql database? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/267474-2-questions-for-you/ Share on other sites More sharing options...
trq Posted August 23, 2012 Share Posted August 23, 2012 You can find a users ip address within the $_SERVER array. As for inserting it into a database. Have you tried searching for a tutorial? There has to be at least a couple of hundred thousand results on the subject. Quote Link to comment https://forums.phpfreaks.com/topic/267474-2-questions-for-you/#findComment-1371765 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.