hi,
im trying to logg the times certain users log into my site and need to log their IP address.
is there a function in php that reads the users IP that i can use to store in a mysql database.
any help would be appreciated.
Check out the value of $REMOTE_ADDR. Be warned that this is not a guaranteed method, because of things like proxies, dynamic IP assignment, etc.