A

Admin • 833.24K Points
Coach

Q. Which of these functions can be used to connect to a MySQL database in PHP?

  • (A) mysqli_connect()
  • (B) mysql_connect()
  • (C) PDO::__construct()
  • (D) All of the above
  • Correct Answer - Option(D)
  • Views: 27
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

mysqli_connect(), mysql_connect() (deprecated), and PDO can all connect to MySQL.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.