title: check if SQL row exists with PHP
body: <p>I'm using MySQL with PHP and I need to do something like this (pseudocode):</p>
  
  <pre><code>if (sql row exists where username='bob')
  {
      // do this stuff
  }
  </code></pre>