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'"); Quote Link to comment 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 Quote Link to comment 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.