Error creating table: No database selected

I've already change the db\_database but still the same.

[line 1-4 db\_hostname to db\_passowrd](https://i.stack.imgur.com/fxcKa.png)

```
$db_hostname = 'localhost';
$db_database = 'web_sample';
$db_username = '';
$db_password = '';

$connection = 
new mysqli($db_hostname,$db_database, $db_password, $db_username);

if ($connection->connect_error) die($connection->connect_error);

$query ="CREATE TABLE users(
    forename VARCHAR(20) NOT NULL,
    surname VARCHAR(20) NOT NULL,
    username VARCHAR(20) NOT NULL,
    password VARCHAR(32) NOT NULL,
    age smaLLint(8) NOT NULL,
    email VARCHAR(50) NOT NULL
)";
$resu1t = $connection->query($query);

```