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