SHOW TABLE STATUS FROM نام ديتابيس LIKE 'نام جدول';
$dbResult = MYSQL_QUERY("SHOW TABLE STATUS FROM temp LIKE 'carts''");
$dbRecord = MYSQL_FETCH_OBJECT($dbResult);
$dteLastUpdate = $dbRecord->Update_time;
When the data file was last updated. For some storage engines, this value is NULL. For example, InnoDB stores multiple tables in its tablespace and the data file timestamp does not apply.