kemper Posted October 9, 2007 Share Posted October 9, 2007 I want to include a code that states the date and time that a specific table has been updated. I see that each table has the following logged: Creation Cate, Last Updated, and Last Checked. How can I do this? Link to comment https://forums.phpfreaks.com/topic/72381-table-update-date/ Share on other sites More sharing options...
cmgmyr Posted October 9, 2007 Share Posted October 9, 2007 Use NOW() $update = "UPDATE your_table SET something = 'something', last_update = NOW() WHERE userid = $userid"; Link to comment https://forums.phpfreaks.com/topic/72381-table-update-date/#findComment-365030 Share on other sites More sharing options...
kemper Posted October 9, 2007 Author Share Posted October 9, 2007 I do not understand. This looks like it would update, not echo the date. Link to comment https://forums.phpfreaks.com/topic/72381-table-update-date/#findComment-365033 Share on other sites More sharing options...
cmgmyr Posted October 9, 2007 Share Posted October 9, 2007 Sorry, read too fast. How is the date entered into the database? Link to comment https://forums.phpfreaks.com/topic/72381-table-update-date/#findComment-365036 Share on other sites More sharing options...
Barand Posted October 9, 2007 Share Posted October 9, 2007 ... and how do you want it displayed? Link to comment https://forums.phpfreaks.com/topic/72381-table-update-date/#findComment-365040 Share on other sites More sharing options...
kemper Posted October 22, 2007 Author Share Posted October 22, 2007 I would like to post as: Results last updated: Date, Time (Specific) And, the table properties show (in phpMYADMIN): Last update Oct 22, 2007 at 04:23 PM Link to comment https://forums.phpfreaks.com/topic/72381-table-update-date/#findComment-375841 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.