I have followed the tutorial on PHP /Mysql at
but when I create and run the dbconnection.php, and readdata.php scripts at the end of the tutorial the dbconnection script appears to work but the readdata script
gives no output. If I change the database name in dbconnection.php to a non-existent database and run the script there is no error message and in fact the
script returns the same "Connection is completed successfully" message as it does with the correct database name. Clearly there is some error in the setup
of php 7.4, I presume. I have spent several days wrestling with getting php7.4 to connect successfully to mariadb and would appreciate any advice.