Error code: Object of class stdClass could not be converted to string
Source code:
$feilddirect = $mysqli_result->fetch_field_direct(1);
print_r('The current field is:'.$feilddirect);
王林2019-08-20 11:57:09
This function has two required parameters, and you are missing the required result set parameter.
黄埔竹下2019-06-28 14:40:53
Parameter
Description
result Required. Specifies the result set identifier returned by mysqli_query(), mysqli_store_result(), or mysqli_use_result().
fieldnr Required. Specifies the field number. Must be between 0 and Number of fields-1.