Click here to Skip to main content
15,887,083 members
Please Sign up or sign in to vote.
1.12/5 (3 votes)
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
Posted
Updated 2-Sep-18 16:03pm
Comments
TommoDotCommo 2-Sep-18 20:17pm    
You'll need to post more of your code, [if(%conn)] is not enough.

1 solution

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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900