I'm trying to make a script in PHP
(using mariadb) that displays the amount of rows in a table and I'm trying to use the following script:
echo $conn->query('SELECT COUNT(*) FROM testtable')->fetchObject()->count(*);
But when I execute it, I get the following error:
Parse error: syntax error, unexpected '*'. How can I get around this? How can I resolve it