title: Object of class mysqli_result could not be converted to string
body: <p>I am getting the error:</p>
  <blockquote>
  <p>Object of class mysqli_result could not be converted to string</p>
  </blockquote>
  <p>This is my code:</p>
  <pre><code>$result = mysqli_query($con, &quot;SELECT classtype FROM learn_users WHERE username='abcde'&quot;);
  
  echo &quot;my result &lt;a href='data/$result.php'&gt;My account&lt;/a&gt;&quot;;
  </code></pre>