Relative Content

Tag Archive for phpdirectory

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);).