This is the code: 

```
$dbConn = mysqli_connect ($dbHost, $dbUser, $dbPass) or die ('MySQL connect failed. ' . mysqli_error());
mysqli_select_db($dbName) or die('Cannot select database. ' . mysqli_error());

```

[enter image description here](https://i.stack.imgur.com/RLFkP.png)