Multiple choice technology web technology

mysql_connect( ) does not take following parameter

  1. database host

  2. user ID

  3. password

  4. database name

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

mysql_connect() takes three parameters: hostname, username, and password. It does NOT take database name as a parameter - you must select the database separately using mysql_select_db(). Options A, B, and C are all valid parameters. Option D is correct because database name is NOT a parameter of mysql_connect().