PHP error log message wont display from $mysqli = require __DIR__
Im testing my database and validation scripts in php. After changing the database password to run the error script, it is not displaying the message, but instead displaying a white blank page.
Why wont my php script connect to SQL database?
I have php database file labeled database.php
. When I test my connection error script in database.php
, I pass in the directory files ($mysqli = require __DIR__ . "/database.php";
) to my validation file labeled auth.php
& change $password
in database.php
, but Im getting a blank page instead of the connection error script (die("Connection error: " . $mysqli->connect_error);
).