title: Am i safe from SQL injection if i know for sure that a certain value i am using in a dynamic statement is an integer?
body: <p>Before i make my query, i check if the variable that is to be used in that query is an integer using this code: <code>filter_var($_POST["user_id"], FILTER_VALIDATE_INT) !== false</code>. </p>
  
  <p>My question is, should i use PDO or do any escaping if the above function returns true only if my value is an integer (meaning that the value i am to use to build my query is safe) ? Is there any need to escape the value using prepared statements if my value has already passed the above test ?</p>
  
  <p>I have not done any testing with the above nor am i really experienced in server-side technologies, so it is up to you PHP/security experts to guide me.</p>