conan318 Posted November 7, 2011 Share Posted November 7, 2011 How do i correctly update a timestamp? $date = date("Y-m-d H:i:s"); mysql_query("UPDATE mmembers set time=now() where email=$myusername"); Quote Link to comment https://forums.phpfreaks.com/topic/250615-timestamp/ Share on other sites More sharing options...
Pikachu2000 Posted November 7, 2011 Share Posted November 7, 2011 What you have there should work. You don't even need the first line, MySQL's NOW() function is all you need. If it doesn't work, post specific information such as errors, field type, etc. Quote Link to comment https://forums.phpfreaks.com/topic/250615-timestamp/#findComment-1285850 Share on other sites More sharing options...
conan318 Posted November 7, 2011 Author Share Posted November 7, 2011 forgot the ' ' around my $myusername could happend to anyone lol Quote Link to comment https://forums.phpfreaks.com/topic/250615-timestamp/#findComment-1285853 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.