Do you have any advice on how to treat variable inputs before they are fed to the database in order to prevent SQL injection attacks?
For instance,
(1) people will be entering their username and password to login to their accounts in my app. Anything I should do to those variable before they are processed by the database?
(2) people will be entering notes in a text field into the database. how to clean those inputs before database entry?