PHP Code die(‘Could not connect: ‘ . mysql_error()); Code Dissection 1. die() — A PHP Function. The die() function prints a message and exits the current script. 2. mysql_error() — A PHP function. The mysql_error() function returns the error description of the last MySQL operation.