Hướng dẫn mysqli fetch column - cột tìm nạp mysqli

mysqli_fetch_column

[Php 8> = 8.1.0]

mysqli_result :: fetch_column - mysqli_fetch_column - lấy một cột duy nhất từ ​​hàng tiếp theo của bộ kết quả -- mysqli_fetch_columnFetch a single column from the next row of a result set

Sự mô tả

Phong cách hướng đối tượng

publicMysqli_result :: fetch_column [int $column = 0]: null | int | float | chuỗi | false mysqli_result::fetch_column[int $column = 0]: null|int|float|string|false

mysqli_fetch_column [mysqli_result $result, int $column = 0]: null | int | float | chuỗi[mysqli_result $result, int $column = 0]: null|int|float|string|false

Lưu ý: Hàm này đặt các trường NULL thành giá trị PHP null.: This function sets NULL fields to the PHP null value.

Trả về giá trị

Trả về một cột duy nhất từ ​​hàng tiếp theo của tập kết quả hoặc false nếu không còn hàng nữa.false if there are no more rows.

Cảnh báo

Không có cách nào để trả về một cột khác từ cùng một hàng nếu bạn sử dụng chức năng này để truy xuất dữ liệu.

Ví dụ

Ví dụ #1 mysqli_result :: fetch_column [] Ví dụmysqli_result::fetch_column[] example

Phong cách hướng đối tượng

Bài Viết Liên Quan

Chủ Đề