title: How to get number of results by using file_get_contents
body: <p>I have php file named <code>http://example.com/result.php?site=qxvyp6g6vefmt6tduifcr3swhuzo0uju&amp;num=2</code>
  which when executed, given only top 2 results. Here num is variable and can be changed to any value n to get top n results. This works fine when called from browser address bar.</p>
  
  <p>Now i use to get this file content by </p>
  
  <pre><code>&lt;?php
  echo file_get_contents("http://example.com/result.php?site=" . $_GET["site"] . "&amp;num="2"");
  ?&gt;
  </code></pre>
  
  <p>On a page having url ABC.com/index.php?site=qxvyp6g6vefmt6tduifcr3swhuzo0uju</p>
  
  <p>This was working fine before adding &amp;num="2" to file_get_contents. but after adding this gives a mysql error. Kindly help.</p>