haha yea, plenty of time for that. I've just gotten back to this thread now. So going further into this...
I've started used parametrized queries as an alternative to escaping all the possible inputs.
How secure is this method, if at all?
Side not for mssql users stumbling upon this, mssql doesn't take the \' as escaping the double single quotes ('') is how to mssql escapes a single quote so the query would be
Code:
$query = "select * from users where lastname like 'o''brien';';
Corrections to my coding/thoughts welcome.
Bookmarks