I need to convert a MySQL query into a MySQLi and I need some hint with the code.

My SQL query is:

```
SELECT parameter1, parameter2 FROM table WHERE id = X;

```

I have a PHP sentence where I have to use the two parameters, something like this:

```
echo "With the X id the parameter 1 is: ". $parameter1 ." and the parameter2 is ". $parameter2;

```

I know it is a trivial question but I am new to PHP coding and I will really appreciate who ever wants to lend me a hand. 
Thanks in advance.