如何修复此PHP数据库连接错误 [英] How do I fix this PHP database connectivity error

查看:76
本文介绍了如何修复此PHP数据库连接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可恢复的致命错误:类mysqli的对象无法转换为字符串



我尝试过:



if($ conn)

srver名称和用户名和密码我试过if if语句

解决方案

conn)

srver名称和用户名和密码我用if语句尝试了


快速谷歌搜索为你揭示了很多资源调查以解决你的错误。



看你如何提供没有相关的代码(简单的if语句不相关,这并不意味着粗鲁)这可能是你得到的最好的。



重令人难以置信的致命错误:类mysqli的对象无法转换为字符串 - Google搜索 [ ^ ]



Google中的第一个链接看起来很有希望。



php - 类mysqli_result的对象无法转换为字符串 - Stack Overflow [ ^ ]

recoverable fatal error: object of class mysqli could not be converted to string in

What I have tried:

if ($conn )
srver name and username and password i tried it with if statement too

解决方案

conn )
srver name and username and password i tried it with if statement too


A quick google search reveals a lot of resources for you to look into to resolve your error.

Seeing as how you've provided no relevant code (a simple if statement isn't relevant, thats not meant as rude) this is probably the best you are going to get.

recoverable fatal error: object of class mysqli could not be converted to string in - Google Search[^]

First link in google looks promising.

php - Object of class mysqli_result could not be converted to string in - Stack Overflow[^]


这篇关于如何修复此PHP数据库连接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆