php mysqli_query() expects parameter 1 to be mysqli
```php
```
第一个参数应该是$connect。或者你把具体的错误打出来:$result = mysqli_query($conn, $sql);if (!$result) {printf("Error: %s\n", mysqli_error($conn));exit();}