SarkariResultess QA Bank

PHP SQL injection से बचने का सही तरीका क्या है? को secure तरीके से कैसे implement करें?

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

Answer & Explanation

4 Answers
Verified

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

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

केवल trim() करना

केवल trim() करना
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 को अलग रखते हैं। User input को trust न करें; validation, escaping और prepared statements context के अनुसार उपयोग करें।
Verified

SQL string concatenate करना

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