title: Find if number is between two numbers in different fields in a MySQL database
body: <p>How would you format a query on a MySQL database via PHP to find if an IP address falls between two numbers in two different fields?</p>
  
  <p>Numerical representation of IP address to find:</p>
  
  <pre><code>1265631252
  </code></pre>
  
  <p>Database format:</p>
  
  <pre><code> IP FROM      IP TO       REGISTRY  ASSIGNED   CTRY CNTRY COUNTRY
  "1265631232","1265893375","arin","1152835200","US","USA","United States"
  "1265893376","1265958911","arin","1149120000","US","USA","United States"
  "1265958912","1266024447","arin","1149120000","US","USA","United States"
  "1266024448","1266089983","arin","1162425600","US","USA","United States"
  </code></pre>