Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

Object of class mysqli_result could not be converted to string in

Asked by Camellia Kleiber Jul 6, 2021 2.7K views 1 answer
Share

About this question

I am executing the below code.

$result = mysqli_query($con, "SELECT classtype FROM learn_users WHERE username='abcde'");
echo "my result";

I am getting the following error:

 Object of class mysqli_result could not be converted to string 

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.