beansandsausages Posted July 29, 2007 Share Posted July 29, 2007 Hey, have you any reason why this doesnt work ? all fields are in the databse $update_ip = mysql_query("UPDATE `users` SET ip ='$REMOTE_ADDR' WHERE username='$username'"); Link to comment https://forums.phpfreaks.com/topic/62348-solved-ip-log/ Share on other sites More sharing options...
AndyB Posted July 29, 2007 Share Posted July 29, 2007 Doesn't work tells us nothing. Query fails? Database doesn't update? Syntax error? Variables unknown, etc, etc. Who could guess. Perhaps you meant it isn't putting the IP into the database and that's because the recent php releases use $_SERVER['REMOTE_ADDR'] for the IP address Link to comment https://forums.phpfreaks.com/topic/62348-solved-ip-log/#findComment-310261 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.