I am putting together a fairly simple web app that uses user inputted data to act upon an sqlite database and it was brought to my attention 'sanitizing' strings was possibly not enough and could raise further problems. As I understand it I should use prepared statements. In my research I found there is PDO(php data object) that has a prepare function and also the php sqlite3 extension also offers a prepare statement. If it matters, at this point there is no login and no sensitive info in the database.
The PDO seems 'alien' to me and I do not really understand why/how I need to use it. I can copy/paste the code and get it to work, but the 'idea' of it escapes me.
So I guess the question is would the PDO OR sqlite3 prepare function be best and briefly why.
Thanks so much, Todd