殇感故事

关注

expects parameter 1 to be resource, array given 错误解析

殇感故事

关注

阅读 32

2022-10-15


被弄恶心了。字面上就是传递的参数不是资源类型

判断fetch_Array($query) 中传递的参数 $query 是不是资源就行了,试用@屏蔽错误不是一个好的程序员应该做的,

is_resource – 检测变量是否为资源类型

if(is_resource($query))

一切OK了!


相关推荐

捡历史的小木板

Warning: number_format() expects parameter 1 to be double, string given in

捡历史的小木板 95 0 0

素锦时年_1b00

iOS pushmebaby 常见错误解析

素锦时年_1b00 73 0 0

善解人意的娇娇

【leetcode_easy_array】1389. Create Target Array in the Given Order

善解人意的娇娇 77 0 0

婉殇成长笔记

Failed to load response dataNo data found for resource with given identifier

婉殇成长笔记 82 0 0

简单聊育儿

Given an array of size N in which every number is between 1 and N, determine if there are any dupli

简单聊育儿 51 0 0

爱动漫建模

Python 10 大常见错误解析与修复实战!

爱动漫建模 2 0 0

王传学

oracle 错误解决

王传学 20 0 0

小月亮06

RabbitMQ 错误解决

小月亮06 122 0 0

mjjackey

JAVA-Nacos微服务,No data found for resource with given identifier

mjjackey 80 0 0

皮皮球场

解决 Error retrieving parent for item: No resource found that matches the given name '

皮皮球场 93 0 0

精彩评论(0)

0 0 举报