php mysqli connect err0r

Solutions on MaxInterview for php mysqli connect err0r by the best coders in the world

showing results for - "php mysqli connect err0r"
Alice
11 Jan 2019
1<?php
2$link = mysqli_connect('localhost', 'fake_user', 'my_password', 'my_db');
3
4if (!$link) {
5    die('Connect Error: ' . mysqli_connect_error());
6}
7?>
8  //The mysqli_connect_error() will return a list of connection error(s) if the connection to the db fails