title: If statement return wrong value
body: <p>I have a strange problem, a statement works correct on a test server but when I upload it to a live server I get an error.</p>
  
  <p>My problem is as follows, I return a true or false depending on the number of rows of a query,  I have tested the query and seem to have a problem</p>
  
  <pre><code>$row = mysqli_num_rows($result);
  //$row for this example equals zero (0)
  return ($row &gt; 0) ? false : true;
  </code></pre>
  
  <p>It returns true, I am thinking maybe I should use an if statement, but I want to find out why this is returning true and it should return false;</p>
  
  <p>Thank you in advance</p>