Google News
logo
MariaDB - Quiz(MCQ)
PHP provides the ___________ function for opening a database connection.
A)
mysql_connect()
B)
connect()
C)
maria_connect()
D)
mariadb_connect()

Correct Answer :   mysql_connect()


Explanation :

PHP provides the mysql_connect() function for opening a database connection. It uses five optional parameters, and returns a MariaDB link identifier after a successful connection, or a false on unsuccessful connection.

connection mysql_connect(server,user,passwd,new_link,client_flag);

Advertisement