This MYSQL statement is functioning in MYSQL.
SELECT SUM(TABLE_ROWS)
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'sample'
But when I put into my PHP code it does not funtion. What am I gonna do? The image below encircled with red is what I want to output in my page. Thank you.

<?php $stmt = $conn->query('SELECT SUM(TABLE_ROWS) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = sample '); $row_count = $stmt->rowCount(); echo $row_count; ?>rowCount()? no this will return only one row. So you have to fetch the result and see whatSUM(TABLE_ROWS)contains