title: Catching mysql_query error
body: <p>I am trying to stop the mysql_query error from being output onto my form. Currently if there is no location found, I receive the error </p>
  
  <p>"Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 11"</p>
  
  <p>I am trying to catch this error, and instead assign the $location variable to not found. My code for attempting this is below, what am I doing wrong?</p>
  
  <p>Thanks!</p>
  
  <pre><code>$query3 = "SELECT `location` FROM location WHERE vin = '$vin' LIMIT 1";
  $result3 = mysql_query($query3);
  
  if (!mysql_result($result3,0)) {
      $location = "Not found";
  } else $location = mysql_result($result3,0,0);
  </code></pre>