MySQL connection error during use of the function in php. If you are getting this error, it means that your MySQL server is not able to connect to the database. This can be caused by a variety of reasons, but most likely it's because you're using global variable of connection or you're not following the proper installation instructions.
This video shows you how to fix a MySQL connection error when using the function in php.