connect PHP with MySQL?

$conn = new mysqli("localhost", "root", "", "testdb");
if ($conn->connect_error) {
die("Connection failed!");
}

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *