文章詳情頁
fetch_field_direct()報(bào)錯(cuò)
瀏覽:94日期:2022-06-09 17:54:48
問題描述
錯(cuò)誤代碼:Object of class stdClass could not be converted to string
源代碼:
$feilddirect = $mysqli_result->fetch_field_direct(1);
print_r('當(dāng)前字段是:'.$feilddirect);
問題解答
回答1:這個(gè)函數(shù)有兩個(gè)必須的參數(shù),您缺少了必須的結(jié)果集參數(shù)。
回答2:參數(shù)
描述
result 必需。規(guī)定由 mysqli_query()、mysqli_store_result() 或 mysqli_use_result() 返回的結(jié)果集標(biāo)識(shí)符。
fieldnr 必需。規(guī)定字段號(hào)。必須介于 0 和 字段數(shù)-1 之間。
回答3:應(yīng)該 參數(shù) 不正確
相關(guān)文章:
1. css3 - jquery div 翻轉(zhuǎn)?2. python - 有什么好的可以收集貨幣基金的資源?3. docker容器呢SSH為什么連不通呢?4. docker鏡像push報(bào)錯(cuò)5. docker安裝后出現(xiàn)Cannot connect to the Docker daemon.6. docker start -a dockername 老是卡住,什么情況?7. docker網(wǎng)絡(luò)端口映射,沒有方便點(diǎn)的操作方法么?8. MySQL數(shù)據(jù)庫中文亂碼的原因9. Docker for Mac 創(chuàng)建的dnsmasq容器連不上/不工作的問題10. golang - 用IDE看docker源碼時(shí)的小問題
排行榜

熱門標(biāo)簽