Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

Why should PDO::ATTR_EMULATE_PREPARES be set to false?

  1. A To improve performance only
  2. B So the database performs the preparation, giving genuine parameterisation
  3. C To enable persistent connections
  4. D To support more drivers
Answer

So the database performs the preparation, giving genuine parameterisation

Emulated prepares build the query string in the driver, which is not equivalent protection against injection.

All Php MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as