mysql - Wordpress (database); Show last modified date? -
When my MySQL-database was updated, how can I show the last modified date?
(I know that there is a plugin to show the latest revised date for the post / page, I want to do this, but show that the field / metadata was updating)
Thanks for the answer "/ P>
OK, solve it.
& Lt ;? php global $ wpdb; $ result = $ wpdb- & gt; get_results (show 'table_name'; '' like show table status from database table); Foreach (dollar result as $ result) {$ updatetime = $ data-> Update_time;} $ date = substr ($ Updatetime, 0, -3); Echo $ date;? & Gt;
Comments
Post a Comment