WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

Convert "mysql mysqli" to English

Kirky

New member

0

0%

Status

Offline

Posts

28

Likes

0

Rep

0

Bits

151

3

Months of Service

0%
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'];
}
}
```
 

249

6,622

6,642

Top