non object error handling with mysqli

Subject:

mysqli_error() will provide the error for $cnx = mysqli_connect() is mysqli_query has failed providing boolean of false.

2017-07-11 10:11:33gstlouis