Hello friends, I have a database connection code in mysql, how can I convert this into mysqli. Thank you.
```php
$baglan = mysqli_connect("localhost", "root", "root", "yeni");
$sql = "select * from user where id IN (1)";
$result = mysqli_query($baglan, $sql);
if (mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_assoc($result)) {
echo $row['name'];
}
}
```
```php
$baglan = mysqli_connect("localhost", "root", "root", "yeni");
$sql = "select * from user where id IN (1)";
$result = mysqli_query($baglan, $sql);
if (mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_assoc($result)) {
echo $row['name'];
}
}
```