您的位置:首页技术文章
文章详情页

fetch_field_direct()报错

浏览:60日期:2022-06-09 17:54:48

问题描述

错误代码:Object of class stdClass could not be converted to string

源代码:

$feilddirect = $mysqli_result->fetch_field_direct(1);

print_r('当前字段是:'.$feilddirect);

问题解答

回答1:

这个函数有两个必须的参数,您缺少了必须的结果集参数。

回答2:

参数

描述

result 必需。规定由 mysqli_query()、mysqli_store_result() 或 mysqli_use_result() 返回的结果集标识符。

fieldnr 必需。规定字段号。必须介于 0 和 字段数-1 之间。

回答3:

应该 参数 不正确

相关文章: