Quiz on Connect to MySQL Using PHP



1. What PHP function is used to connect to a MySQL database?
2. What do you need to provide to connect to a MySQL database using PHP?
3. Which extension is recommended for connecting to MySQL in PHP?
4. What does the 'mysqli' in 'mysqli_connect()' stand for?
5. How can you check if the connection to the MySQL database was successful?

Advertisements