React.js
Angular
Ethical Hacking
Agile
AWS
BlockChain
Cassandra
Cloud
Salesforce
Scaled Agile
TOGAF
DevOps
GIT
Jenkins
Jira
Kibana
Linux
NGINX
Ansible
Artificial Intelligence
in PHP by
How can we connect to a MySQL database from a PHP script?
Click here to read more about DevOps

1 Answer

0 votes
by
To be able to connect to a MySQL database, we must use mysqli_connect() function as follows:

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

Related questions

Madanswer
0 votes
asked Jun 22, 2019 in PHP by SakshiSharma
0 votes
asked Jun 23, 2019 in PHP by SakshiSharma
...