title: Catchable fatal error: Object of class mysqli_result could not be converted to string inC:\xampp\htdocs\Amazing_World_Site\admin\index.php on line 70
body: <pre><code>&lt;?php
  
  $sql_post=&quot;SELECT COUNT(p_id) FROM tbl_posts&quot;;
  
  $post_results=mysqli_query($dbcon,$sql_post);
  
  $post_numbers = $post_results.&quot;&quot;;
  </code></pre>
  <blockquote>
  <p>Catchable fatal error: Object of class mysqli_result could not be converted to string inC:\xampp\htdocs\Amazing_World_Site\admin\index.php on line 70</p>
  </blockquote>
  <p>Line 70 <code>$post_numbers = $post_results.&quot;&quot;;</code></p>
  <p>How do you fix this error?</p>