WHICH FUNCTION IS USED TO CONNECT WITH DATABASE IN PHP?

zack mathews

Total Post:5

Points:25
Posted by  zack mathews
PHP 
PHP
 246  View(s)
Ratings:
Rate this:
  1. zack mathews

    Post:5

    Points:25
    Which function is used to connect with database in PHP?

    PHP provides mysqli_connect() function to connect with database. This function has five parameter:

    a)    Server: The host name running the database. If not defined then by default it is localhost.

    b)   User: The username who is accessing the database.

    c)    Password: The password given by the user who is accessing the database.

    d)   new_link(): no new connection will be established.

    e)    Client_flags : MYSQL_CLIENT_COMPRESS-use Compression protocol.

  1. KIRTI SHARMA

    Post:4

    Points:20
    Which function is used to connect with database in PHP?

    mysql_connect("Host name","user name","password");

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!