I am currently writing an application that requires solid security against SQL injection. My question is this. Is it an absolute requirement to separate your input parameters from your prepare statement to prevent SQL injection, or can you simply prepare any statement to insure that it is free of SQL injection?
In other words can I use mysqli_prepare as a simple check to make sure there is no injected SQL in a statement that I have previously constructed? Or is the entire process of binding parameters, and using the subsequent statement structures returned to process the information returned from the server?