I am trying to get all rows in database. My code:

```
$sql = "SELECT * FROM lectors";

$array = array();
while($row =  mysqli_fetch_assoc(mysqli_query($con,$sql))){
    echo $row["name"];
}

```

While I send request, server doesn't reply. Any ideas?