I am totally confused, I've read a few posts but still I am not sure. I do not want to go the prepared statements route since this site is only on our intranet. I've read the following posts, but still I am uncertain.
My question: Should I use mysql-real-escape-string
- When only I get user input from a form OR
- On all my queries? eg:
SELECT * FROM ......
For example in this post it states: You need to call this function when building SQL queries with string literals. You should not call it anywhere else.