title: Whats the proper way to check if mysql_query() returned any results?
body: <p>I tried what seemed like the most intuitive approach</p>
  
  <pre><code>$query = "SELECT * FROM members 
            WHERE username = '$_CLEAN[username]'
            AND password = '$_CLEAN[password]'";
  $result = mysql_query($query);
  
  if ($result)
  { ... 
  </code></pre>
  
  <p>but that didn't work because <code>mysql_query</code> returns a true value even if 0 rows are returned.</p>
  
  <p>I basically want to perform the logic in that condition only if a row is returned.</p>