"; // Database connection details $host = 'sql5c40c.carrierzone.com'; $username = 'csanesitea981136'; $password = 'Developer1'; $database = 'New061324DB_csanesitea981136'; echo "Print out strings.
"; echo $host . " " . $username . " " . $password . " " . $database . "
"; echo "Create a connection.
"; // Create a connection $conn = new mysqli($host, $username, $password, $database); echo "Test the connection
"; // Check the connection echo "Check the connection.
"; if ($conn->connect_error) { echo "Connection failed.
"; die("Connection failed: " . $conn->connect_error); } echo "Connected successfully to the database.
"; // Close the connection $conn->close(); ?>