扫码关注官方订阅号
错误代码:Object of class stdClass could not be converted to string
源代码:
$feilddirect = $mysqli_result->fetch_field_direct(1);
print_r('当前字段是:'.$feilddirect);
这个函数有两个必须的参数,您缺少了必须的结果集参数。
参数
描述
result 必需。规定由 mysqli_query()、mysqli_store_result() 或 mysqli_use_result() 返回的结果集标识符。
fieldnr 必需。规定字段号。必须介于 0 和 字段数-1 之间。
应该 参数 不正确
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
这个函数有两个必须的参数,您缺少了必须的结果集参数。
参数
描述
result 必需。规定由 mysqli_query()、mysqli_store_result() 或 mysqli_use_result() 返回的结果集标识符。
fieldnr 必需。规定字段号。必须介于 0 和 字段数-1 之间。
应该 参数 不正确