|
mysqli_result::fetch_columnmysqli_fetch_columnFetch a single column from the next row of a result set DescriptionObject-oriented style
public nullintfloatstringfalse mysqli_result::fetch_column(int
$column = 0)Procedural style nullintfloatstringfalse mysqli_fetch_column(mysqli_result
$result , int $column = 0)
Fetches one row of data from the result set and returns the 0-indexed column.
Each subsequent call to this function will return the value from the next row
within the result set, or
Parameters
Return Values
Returns a single column
from the next row of a result set or Warning
There is no way to return another column from the same row if you use this function to retrieve data. ExamplesExample #1 mysqli_result::fetch_column example Object-oriented style
Procedural style
The above examples will output something similar to: Rafah Nablus Jabaliya Hebron Khan Yunis See Also
|