title: How to create a Mysql Query that returns something in that row and find other questions like it
body: <p>I am trying to create a Mysql Query where I can put an iframe on any page on the internet and it can find the page address and check if that is in the database. If so I must return a value from other rows that have the same variable in common.</p>
  
  <ol>
  <li>Find the page Address</li>
  <li>Check if it is in the Database</li>
  <li><strong>If true</strong> Return a value from that row</li>
  <li>Find the 5 closest rows that have the same value.</li>
  </ol>
  
  <p>Lastly I must be able to turn these into variables and display these as text in a php format.</p>
  
  <p>Any help with this would be appreciated but, I realize that this is complex and If you have an answer to any of the questions here please answer.</p>