how can we connect to a mysql database from a php script?
ReportQuestion
2 years ago 1670 views
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"); ?>
Thread Reply