title: mysql_query return values
body: <p>The <code>mysql_query</code> function in php returns <code>TRUE</code> on success and <code>FALSE</code> on failure.  </p>
  
  <p>My question is what is considered success ? </p>
  
  <p>In other words, what is returned when there is nothing from a <code>SELECT</code> statement, or if there is an <code>UPDATE</code> and nothing that matches the <code>WHERE</code> clause.  Does it return FALSE or something like an empty resource ?  </p>
  
  <p>I'm trying to differentiate between a db error, and an empty result.</p>