title: Catchable fatal error: Object of class mysqli could not be converted to string in what is ment buy it beind an object?
body: <p>I have been on the site for some time now and I can't seem to get the idea that most of the similar questions are getting answers for this error: </p>
  
  <blockquote>
    <p>Catchable fatal error: Object of class mysqli could not be converted to string</p>
  </blockquote>
  
  <p>Saying it is an object. I am fairly new to PHP and it would really help if anyone could explain this to me. I am trying to retrieve data from my database and echo it in a table. </p>
  
  <p>This is what I have done so far:</p>
  
  <pre><code>$dbcon=mysqli_connect("localhost","root","","technoage");
  
  if (mysqli_connect_errno())
  {
      echo "Failed to connect to MySQL: " . mysqli_connect_error();
  }
  
  $results = mysql_query("SELECT * FROM items WHERE item_id = 1,$dbcon");
  if(!$results)
  {
      die("Database query failed".mysql_error());
  }
  while($row = mysql_fetch_array($results))
  {
      echo $row['descreption']." ".$row['price']."&lt;br/&gt;";
  }
  </code></pre>