connect_error) { // If connection failed, you can optionally handle the error here die("Connection failed: " . $conn->connect_error); } else { // If connection is successful } ?>