Disable multiple statements in PHP PDO -


is there way disable multiple statement queries in pdo? method works drivers supported?

alternatively, there known filter detect multiple statements in string?

i know prepared statements can better prevent sql injection risks, there reasons why can't use them in case.

you barking wrong tree.

multiple statement not synonym sql injection. it's subset, small one, out of zilliards other possible ways exploit injection.

therefore should protect injection, not multiple statement. this, query sent database api have 100% hardcoded in script. achieve that, substitute variables in query placeholders.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -