$stmt = $conn->prepare('select count(names) as names from names where names = :name');
$stmt->bindParam(':name', $name);
$stmt->execute();
How do I output the value of names when doing a select count()
using PDO without having to use a while loop or something similar?
I need the count value of names (1, 3 or 5 or whatever it is).