title: Check if value exists In MySQL row
body: <p>I have a php variable: <code>$foo</code></p>
  
  <p>My MySQL table called <code>data</code> has the following structure:</p>
  
  <pre><code>id    var    header
  
  1     zj3     http://google.com
  </code></pre>
  
  <p>I would like to check if <code>$foo</code> is all ready in <code>var</code> row.</p>
  
  <p>If it is I would like to echo <code>header</code> ("http://google.com")</p>
  
  <p>How would you approach this?</p>
  
  <p>Thanks in advance, please ask if any clarification is needed!</p>