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);
This function has two required parameters, and you are missing the required result set parameter.
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.
The parameters should be incorrect
This function has two required parameters, and you are missing the required result set parameter.
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.
The parameters should be incorrect