I am attempting to set up a connection to a database via MySQLi. I recently entered invalid details to check whether or not the error reporting would work correctly; it didn't. It's simply showing me a blank page when I click "Sign In."
<?php
ini_set('display_errors', 1); error_reporting(~0);
$emailaddress = $_POST['emailaddress'];
$password = $_POST['password'];
if ($emailaddress&&$password)
{
$db = @new mysqli('loalhost','rot','','FitessHouse');
if($db->connect_errno)
{
trigger_error('Unable to connect to database [' . $db->connect_error . ']', E_USER_ERROR);
}
}
?>