diff --git a/code/app/index.php b/code/app/index.php index a4961aa9f..7a6e1333f 100644 --- a/code/app/index.php +++ b/code/app/index.php @@ -13,13 +13,19 @@ // Test MySQL (Docker) $mysqli_connection = new MySQLi('db', 'docker', 'secret', 'test'); -if ($mysqli_connection->connect_error) echo "MySQL Not connected, error: " . $mysqli_connection->connect_error; -else echo "MySQL Connected to Docker container.

"; +if ($mysqli_connection->connect_error) { + echo "MySQL Not connected, error: " . $mysqli_connection->connect_error; +} else { + echo "MySQL Connected to Docker container.

"; +} // Test MySQL (Homestead) $mysqli_homestead_connection = new MySQLi('192.168.56.56', 'homestead', 'secret', 'homestead', 3306); -if ($mysqli_homestead_connection->connect_error) echo "MySQL Connected to Homestead"; -else echo "MySQL Not connected to Homestead, error: " . $mysqli_homestead_connection->connect_error; +if ($mysqli_homestead_connection->connect_error) { + echo "MySQL Connected to Homestead"; +} else { + echo "MySQL Not connected to Homestead, error: " . $mysqli_homestead_connection->connect_error; +} phpinfo();