SarkariResultess QA Bank

PHP SQL injection से बचने का सही तरीका क्या है? production project में safely कैसे use करें?

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

Answer & Explanation

4 Answers
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 को अलग रखते हैं। Production में logging और safe error handling रखें।
Verified

केवल trim() करना

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

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

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