title: How can I return the nearest value from mysql
body: <p>If I had a table something like</p>
  
  <pre><code>ID     VALUE
  1      1000
  2      1500
  3      2000
  </code></pre>
  
  <p>and I were to select <code>value='1999'</code> it would return the 3rd row. If I were to select <code>1200</code> instead, it would return the 1st row. How do I do that in php?</p>