Normally I use a custom function that goes through quite a few string replaces to help secure my my db’s from html forms . And I know that I am going to eventually have to write preg matches for all of them (I have some) but I recently stumbled across a bit of code
I thought encoding was to help protect against cross site attacks,
If by prepared you mean “SELECT id,name FROM table WHERE match=”‘.$value.’“;” I got that. At either rate I had problems with the above code so I am just gonna have to use my string replaces until I write the proper regular expression.