Got PHP to connect to MySQL and exit with errors.