SarkariResultess QA Bank

PHP SQL injection से बचने का सही तरीका क्या है? इसका सही PHP syntax क्या है?

Other 0 Views Verified
PHP SQL injection से बचने का सही तरीका क्या है? इसका सही PHP syntax क्या है? सही विकल्प चुनें और code/solution को समझें।
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

केवल trim() करना

केवल trim() करना
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

SQL string concatenate करना

SQL string concatenate करना
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified Correct Answer

PDO prepared statements with bound parameters

PDO prepared statements with bound parameters
Additional Explanation
Prepared statements SQL और user input को अलग रखते हैं।
Verified

password को query में जोड़ना

password को query में जोड़ना
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।