title: MySQL query for ID < variable
body: <p>Hey, so what I am looking to accomplish is a MySQL query which grabs just the FIRST row whos ID is less than my current one. So basically a next button. Here is what I would like to modify:</p>
  
  <pre><code>$next = mysql_query("select * from posts where id&lt;'$id'");
  </code></pre>
  
  <p>So how would I change this so it only selects the first value which is less than my ID value (which is the id of my current page)</p>
  
  <p>Thanks! I will be doing this the reverse way for a previous button too.</p>