I have a script in PHP and MySQL that has a query responsible for counting how many records (clients) are inserted into one of the tables in my database. However, I need to show the amount of records (clients) in the table with the echo command, but I do not know how to do it. Below is my code:
<?php
include_once 'conexao.php';
$sql = $dbcon->query("SELECT COUNT(*) FROM tbClientes");
?>
I tried to use echo $sql;
but it did not work.