Hi friends. I wanted to open a help topic for friends who research PDO.
In this context, we find the number of data of the table in the database using PDO.
Let's connect the database first.
try {
$db = new PDO('mysql:host=localhost;dbname=DBNAME','root','');
} catch (PDOException $e) {...