English

Which is the correct function to establish connection in PHP?

Advertisements

Question

Which is the correct function to establish connection in PHP?

Options

  • mysqli_connect(“Server Name “,”User Name”,”Password”,”DB Name”);

  • connect(“Server Name “,”User Name”,”Password”,”DB Name”);

  • mysql_connect(“Server Name “,”User Name”,”Password”,”DB Name”);

  • mysqli_connect (“Database Object”);

MCQ
Advertisements

Solution

mysql_connect(“Server Name “,”User Name”,”Password”,”DB Name”);

shaalaa.com
MYSQL Function in PHP
  Is there an error in this question or solution?
Chapter 9: Connecting PHP and MYSQL - Evaluation - PART – I [Page 131]
Advertisements
Share
Notifications



      Forgot password?
Use app×