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"); 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. 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 Link to comment https://forums.phpfreaks.com/topic/250615-timestamp/#findComment-1285853 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.