Answers

Question and Answer:

  Home  Junior PHP Developer

⟩ Tell me how can we connect to a MySQL database from a PHP script?

To be able to connect to a MySQL database, we must use mysql_connect() function as follows:

<!--?php $database = mysql_connect("HOST", "USER_NAME", "PASSWORD"); mysql_select_db("DATABASE_NAME",$database); ?-->

 184 views

More Questions for you: