title: SQL Injection Prevention Using Error Page
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/60174/best-way-to-stop-sql-injection-in-php">Best way to stop SQL Injection in PHP</a>  </p>
  </blockquote>
  
  
  
  <p>I am curious what is the best way to prevent SQL injections through URL parameters - for example if the user visited <a href="http://mydomain.com/info.php?id=" rel="nofollow noreferrer">http://mydomain.com/info.php?id=</a>'50</p>
  
  <p>I am told the above URL with the parameter can allowed Brutal SQL injections, so what exactly is the best way of preventing this from happening?</p>
  
  <p>Would sending the user to an error page when "or die" takes place prevent these SQL injection?</p>