Multiple choice technology web technology

Which PHP function do you use to connect to a mysql database.

  1. mysql_selectDB_server($server,$user,$password)
  2. mysql_connection($server,$user,$password)
  3. mysql_connect($server,$user,$password)
  4. database_connect($mysql,$server,$user,$password,$database)
Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

mysql_connect() was the standard function in PHP's mysql extension (now deprecated) to establish a connection to a MySQL database server using the server address, username, and password parameters. Note that this extension is deprecated in favor of mysqli or PDO.