title: php switching to mysqli: num_rows issue
body: <p>I recently started updating some code to MySQL improved extension, and have been successful up until this point:</p>
  
  <pre><code>// old code - works
  $result = mysql_query($sql);
      if(mysql_num_rows($result) == 1){
      $row = mysql_fetch_array($result);
      echo $row['data'];
      }
  
  
  // new code - doesn't work
  $result = $mysqli-&gt;query($sql) or trigger_error($mysqli-&gt;error." [$sql]"); 
      if($result-&gt;num_rows == 1) {
      $row = $result-&gt;fetch_array();
      echo $row['data'];
      }
  </code></pre>
  
  <p>As shown I am trying to use the <b>object oriented style</b>.
  I get no mysqli error, and vardump says no data... but there definitely is data in the db table.</p>