Multiple choice technology programming languages

mysql_connect( ) does not take following parameter

  1. password

  2. user ID

  3. database name

  4. database host

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The mysql_connect() function accepts three parameters: database host, username, and password. Database name is NOT a parameter of mysql_connect() - you must select the database separately using mysql_select_db() after establishing the connection. Therefore, option C (database name) is the correct answer as the parameter that is NOT accepted.