title: MYSQLi fetch object issue
body: <p>Why am I getting the error: </p>
  
  <blockquote>
    <p>Fatal error: Call to undefined method mysqli::fetch_object()</p>
  </blockquote>
  
  <p>Heres my code:</p>
  
  <pre><code>$mysqli = new mysqli($db_data_hostname, $db_data_username, $db_data_password, $db_data_dbname);
      $query = "SELECT attName, attType, attOptions FROM form_constructor WHERE  device_name='$deviceType';";
  
      $result = $mysqli-&gt;query($query);
  
      while($row = $mysqli-&gt;fetch_object($result)){
  
          echo $row-&gt;attName;
          echo $row-&gt;attType;         
          echo $row-&gt;attOptions;
  
      }
  </code></pre>