What is the correct way of PHP syantax to connect to a MySQL database?

  1. mysql_open("localhost");

  2. mysql_connect("localhost");

  3. dbopen("localhost");

  4. connect_mysql("localhost");


Correct Option: B

Find more quizzes: