When connecting to a MySQL database using PDO, the DSN (Data Source Name) starts with the string ________.
- "dsn:"
- "pdo:"
- "mysql:"
- "database:"
When connecting to a MySQL database using PDO, the DSN typically starts with "mysql:" to specify the database type for the connection.
Loading...
Related Quiz
- In PHP, superglobals are ______ that are always accessible, regardless of scope.
- To sanitize a string in PHP, you can use the filter_var() function with the FILTER_SANITIZE_STRING ______.
- You need to check if a function has been defined in your PHP script. How would you do this?
- In PHP, you can define a constant in a class using the const keyword like const CONSTANT_NAME = ______.
- Which PHP function is used to start a new session or to resume an existing session?