php - How to get the exact date and time when mysql database table last updated? -


hi new in web development , suffering problem date , time when mysql database table last updated because have show on web page. getting last updated date correctly not correct time please me.

 <?php      $sql = "show table status mydatabasename 'tablename'";     $tablestatus = mysql_query($sql);  while ($array = mysql_fetch_array($tablestatus)) {           $updatetime = $array['update_time'];            $datetime = new datetime($updatetime);           echo $updatetime ;      }   ?> 

if you

select update_time   information_schema.tables  table_schema = 'dbname' , table_name = 'tabname' 

how can tell when mysql table last updated?


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -