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

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -