PDO::ERRMODE_EXCEPTION ]); $stmt = $pdo->prepare("SELECT UPDATE_TIME FROM information_schema.tables WHERE table_schema = ? AND table_name IN ('times', 'names')"); $stmt->execute([$dbName]); $updateTimes = $stmt->fetchAll(PDO::FETCH_COLUMN); $namesCount = $pdo->query("SELECT COUNT(*) FROM names")->fetchColumn(); $timesCount = $pdo->query("SELECT COUNT(*) FROM times")->fetchColumn(); $fingerprint = implode('|', $updateTimes) . '|' . $namesCount . '|' . $timesCount; echo md5($fingerprint); } catch (PDOException $e) { echo "0"; } ?>